Bugzilla – Attachment 145249 Details for
Bug 32602
SIP Server doesn't respect IssuingInProcess system preference
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32602: Unit tests
Bug-32602-Unit-tests.patch (text/plain), 1.48 KB, created by
Alex Buckley
on 2023-01-13 05:21:50 UTC
(
hide
)
Description:
Bug 32602: Unit tests
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2023-01-13 05:21:50 UTC
Size:
1.48 KB
patch
obsolete
>From 2ef445f6dd55da6022b77aca25929cc936aec044 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Fri, 13 Jan 2023 05:21:09 +0000 >Subject: [PATCH] Bug 32602: Unit tests > >Test plan: >1. sudo koha-shell <instance> >2. prove -v t/db_dependent/SIP/Transaction.t >3. Confirm all tests pass > >Sponsored-by: Horowhenua District Council, New Zealand >--- > t/db_dependent/SIP/Transaction.t | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/SIP/Transaction.t b/t/db_dependent/SIP/Transaction.t >index e1e15ccb95..9ac4889e63 100755 >--- a/t/db_dependent/SIP/Transaction.t >+++ b/t/db_dependent/SIP/Transaction.t >@@ -440,7 +440,7 @@ subtest do_checkin => sub { > }; > > subtest do_checkout_with_patron_blocked => sub { >- plan tests => 4; >+ plan tests => 5; > > my $library = $builder->build_object( { class => 'Koha::Libraries' } ); > my $institution = { >@@ -495,6 +495,10 @@ subtest do_checkout_with_patron_blocked => sub { > $circ = $ils->checkout($fines_patron->cardnumber, $item->barcode); > is( $circ->{screen_msg}, 'Patron has fines', "Got correct fines screen message" ); > >+ t::lib::Mocks::mock_preference( 'IssuingInProcess', 1 ); >+ $circ = $ils->checkout($fines_patron->cardnumber, $item->barcode); >+ is( $circ->{screen_msg}, '', "Patron got no fines screen message when IssuingInProcess system preference is enabled" ); >+ > my $debarred_patron = $builder->build_object( > { > class => 'Koha::Patrons', >-- >2.20.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 32602
:
145170
|
145249
|
149152
|
149153
|
156808
|
156809
|
157296
|
157297