Bugzilla – Attachment 59040 Details for
Bug 17917
t/db_dependent/check_sysprefs.t fails on kohadev strangely
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17917: Fix Jenkins for t/db_dependent/Circulation/MarkIssueReturned.t
Bug-17917-Fix-Jenkins-for-tdbdependentCirculationM.patch (text/plain), 1.90 KB, created by
Mark Tompsett
on 2017-01-17 01:08:03 UTC
(
hide
)
Description:
Bug 17917: Fix Jenkins for t/db_dependent/Circulation/MarkIssueReturned.t
Filename:
MIME Type:
Creator:
Mark Tompsett
Created:
2017-01-17 01:08:03 UTC
Size:
1.90 KB
patch
obsolete
>From b7b5ac1005cd824b5fc07357ebc415c1f60298b7 Mon Sep 17 00:00:00 2001 >From: Mark Tompsett <mtompset@hotmail.com> >Date: Mon, 16 Jan 2017 20:06:20 -0500 >Subject: [PATCH] Bug 17917: Fix Jenkins for > t/db_dependent/Circulation/MarkIssueReturned.t > >TEST PLAN >--------- >1) prove -v t/db_dependent/Circulation/MarkIssueReturned.t > -- fails >2) apply rhis patch >3) prove -v t/db_dependent/Circulation/MarkIssueReturned.t > -- succeeds >4) run koha qa test tools >--- > t/db_dependent/Circulation/MarkIssueReturned.t | 18 ++++++++++++++++-- > 1 file changed, 16 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Circulation/MarkIssueReturned.t b/t/db_dependent/Circulation/MarkIssueReturned.t >index a3428eb..179fc1a 100644 >--- a/t/db_dependent/Circulation/MarkIssueReturned.t >+++ b/t/db_dependent/Circulation/MarkIssueReturned.t >@@ -44,12 +44,26 @@ my %item_branch_infos = ( > holdingbranch => $branchcode, > ); > >-my $borrowernumber = AddMember( categorycode => $categorycode, branchcode => $branchcode ); >+my $patron = $builder->build({ >+ source => 'Borrower', >+ value => { >+ categorycode => $categorycode, >+ branchcode => $branchcode, >+ }, >+}); >+my $borrowernumber = $patron->{borrowernumber}; > > eval { C4::Circulation::MarkIssueReturned( $borrowernumber, 'itemnumber', 'dropbox_branch', 'returndate', 2 ) }; > like ( $@, qr<Fatal error: the patron \(\d+\) .* AnonymousPatron>, ); > >-my $anonymous_borrowernumber = AddMember( categorycode => $categorycode, branchcode => $branchcode ); >+my $anonymous_patron = $builder->build({ >+ source => 'Borrower', >+ value => { >+ categorycode => $categorycode, >+ branchcode => $branchcode, >+ }, >+}); >+my $anonymous_borrowernumber = $anonymous_patron->{borrowernumber}; > t::lib::Mocks::mock_preference('AnonymousPatron', $anonymous_borrowernumber); > # The next call will raise an error, because data are not correctly set > $dbh->{PrintError} = 0; >-- >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 17917
:
59026
|
59027
|
59028
|
59029
|
59030
|
59031
|
59039
|
59040
|
59041
|
59042
|
59044
|
59045
|
59046
|
59052
|
59062
|
59175
|
59206
|
59207
|
59274
|
59287
|
59299
|
59310
|
59311
|
59313
|
59319
|
59320
|
59321