Bug 19928: Mock delimiter pref in tests
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Feb 2018 17:49:21 +0000 (14:49 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 9 Feb 2018 17:49:21 +0000 (14:49 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Acquisition/GetBasketAsCSV.t

index 130de06..6de23d1 100644 (file)
@@ -12,6 +12,7 @@ use Koha::Database;
 use Koha::CsvProfile;
 
 use Koha::Acquisition::Orders;
+use t::lib::Mocks;
 
 my $schema = Koha::Database->new()->schema();
 $schema->storage->txn_begin();
@@ -70,6 +71,7 @@ is($basket_csv1, 'autor,title,quantity
 ', 'CSV should be generated with user profile');
 
 # Use default template
+t::lib::Mocks::mock_preference('delimiter', ',');
 my $basket_csv2 = C4::Acquisition::GetBasketAsCSV($basketno, $query);
 is($basket_csv2, 'Contract name,Order number,Entry date,ISBN,Author,Title,Publication year,Publisher,Collection title,Note for vendor,Quantity,RRP,Delivery place,Billing place
 "",' . $order->ordernumber  . ',2016-01-02,,"King, Stephen","Test Record",,"","","",3,,"",""