Bugzilla – Attachment 75914 Details for
Bug 20900
Yet another test assumes that CPL is present
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20900: Add CPL test branch in rollingloans.t
Bug-20900-Add-CPL-test-branch-in-rollingloanst.patch (text/plain), 1.68 KB, created by
Marcel de Rooy
on 2018-06-08 08:58:38 UTC
(
hide
)
Description:
Bug 20900: Add CPL test branch in rollingloans.t
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2018-06-08 08:58:38 UTC
Size:
1.68 KB
patch
obsolete
>From 4f39e2d40b4e82c27ec0b7010a18682c1415626d Mon Sep 17 00:00:00 2001 >From: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >Date: Fri, 8 Jun 2018 10:56:10 +0200 >Subject: [PATCH] Bug 20900: Add CPL test branch in rollingloans.t >Content-Type: text/plain; charset=utf-8 > >Trivial fix. > >Test plan: >Without this patch and a CPL library, run rollingsloans.t. See warns. >With this patch, no warns. > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > t/db_dependent/rollingloans.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/rollingloans.t b/t/db_dependent/rollingloans.t >index 6309d5f..bd86f5e 100644 >--- a/t/db_dependent/rollingloans.t >+++ b/t/db_dependent/rollingloans.t >@@ -6,6 +6,7 @@ use C4::Circulation; > use C4::Members; > use C4::Items; > use Koha::DateUtils; >+use Koha::Libraries; > use Koha::Patrons; > use t::lib::TestBuilder; > use t::lib::Mocks qw(mock_preference); >@@ -15,6 +16,10 @@ use Test::More tests => 8; > my $schema = Koha::Database->new->schema; > $schema->storage->txn_begin; > >+my $builder = t::lib::TestBuilder->new; >+$builder->build({ source => 'Branch', value => { branchcode => 'CPL' } }) >+ unless Koha::Libraries->find('CPL'); >+ > C4::Context->_new_userenv(1234567); > C4::Context->set_userenv(91, 'CLIstaff', '23529001223661', 'CPL', > 'CPL', 'CPL', '', 'cc@cscnet.co.uk'); >@@ -25,7 +30,6 @@ my $test_item_fic = '502326000402'; > my $test_item_24 = '502326000404'; > my $test_item_48 = '502326000403'; > >-my $builder = t::lib::TestBuilder->new; > my $borrower1 = $builder->build_object({ class => 'Koha::Patrons', value => { cardnumber => $test_patron } }); > my $item1 = $builder->build_object({ > class => 'Koha::Items', >-- >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 20900
:
75914
|
76610
|
76752
|
76753