Bugzilla – Attachment 53145 Details for
Bug 6906
Show 'Borrower has previously issued $ITEM' alert on checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6906: Tests - Do not assume CPL exists
Bug-6906-Tests---Do-not-assume-CPL-exists.patch (text/plain), 1.29 KB, created by
Jonathan Druart
on 2016-07-06 16:16:05 UTC
(
hide
)
Description:
Bug 6906: Tests - Do not assume CPL exists
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-07-06 16:16:05 UTC
Size:
1.29 KB
patch
obsolete
>From 15529eef8e2d39aaa9b1296c28e000b3900580d6 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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 <jonathan.druart@bugs.koha-community.org> >--- > 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 d76b96d0..67964ec 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.8.1
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 6906
:
5531
|
5532
|
5533
|
27558
|
27606
|
30680
|
30681
|
50071
|
50127
|
50128
|
50243
|
50286
|
50323
|
51378
|
51393
|
52278
|
52279
|
52280
|
53104
|
53105
|
53136
|
53144
| 53145 |
53146
|
53147
|
53148