From 58501eb4d451ca73fc2cab50db4077cdb63ef625 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Sun, 12 Jun 2016 11:41:41 +0100 Subject: [PATCH] Bug 6906: Tests - Do not assume CPL exists Since bug 14878, tests must create the data they need to pass and not assume they exist. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- t/db_dependent/Patron/CheckPrevCheckout.t | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Patron/CheckPrevCheckout.t b/t/db_dependent/Patron/CheckPrevCheckout.t index d76b96d05d..67964ec36a 100644 --- a/t/db_dependent/Patron/CheckPrevCheckout.t +++ b/t/db_dependent/Patron/CheckPrevCheckout.t @@ -43,10 +43,11 @@ my $inheritCatCode = $builder->build({ }); # Create context for some tests late on in the file. +my $library = $builder->build({ source => 'Branch' }); my $staff = $builder->build({source => 'Borrower'}); my @USERENV = ( - $staff->{borrowernumber}, 'test', 'MASTERTEST', 'firstname', 'CPL', - 'CPL', 'email@example.org' + $staff->{borrowernumber}, 'test', 'MASTERTEST', 'firstname', $library->{branchcode}, + $library->{branchcode}, 'email@example.org' ); C4::Context->_new_userenv('DUMMY_SESSION_ID'); C4::Context->set_userenv(@USERENV); -- 2.39.5