Bug 19928: Mock delimiter pref in tests
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
0927962b45
commit
35b60cbd13
1 changed files with 2 additions and 0 deletions
|
@ -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,,"",""
|
||||
|
|
Loading…
Reference in a new issue