Bugzilla – Attachment 71389 Details for
Bug 19928
Acquisitions' CSV exports should honor syspref "delimiter"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19928: Mock delimiter pref in tests
Bug-19928-Mock-delimiter-pref-in-tests.patch (text/plain), 1.25 KB, created by
Jonathan Druart
on 2018-02-09 17:50:06 UTC
(
hide
)
Description:
Bug 19928: Mock delimiter pref in tests
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-02-09 17:50:06 UTC
Size:
1.25 KB
patch
obsolete
>From 4f8c14b27671a05245d3859be9f7909abcfd9d39 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 9 Feb 2018 14:49:21 -0300 >Subject: [PATCH] Bug 19928: Mock delimiter pref in tests > >--- > t/db_dependent/Acquisition/GetBasketAsCSV.t | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/t/db_dependent/Acquisition/GetBasketAsCSV.t b/t/db_dependent/Acquisition/GetBasketAsCSV.t >index 130de06..6de23d1 100644 >--- a/t/db_dependent/Acquisition/GetBasketAsCSV.t >+++ b/t/db_dependent/Acquisition/GetBasketAsCSV.t >@@ -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,,"","" >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 19928
:
70421
|
70422
|
70426
|
70698
|
70750
|
71104
|
71105
|
71271
|
71272
| 71389