Bug 19928: Mock delimiter pref in tests

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2018-02-09 14:49:21 -03:00
parent 0927962b45
commit 35b60cbd13

View 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,,"",""