Bugzilla – Attachment 106885 Details for
Bug 21468
Plugins need hooks for checkin and checkout actions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21468: Unit tests for AddReturn
Bug-21468-Unit-tests-for-AddReturn.patch (text/plain), 1.39 KB, created by
Tomás Cohen Arazi (tcohen)
on 2020-07-15 05:29:49 UTC
(
hide
)
Description:
Bug 21468: Unit tests for AddReturn
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2020-07-15 05:29:49 UTC
Size:
1.39 KB
patch
obsolete
>From 954ea8799b3a40735bc747eac73d418072a318b8 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 6 Jul 2020 13:46:15 +0100 >Subject: [PATCH] Bug 21468: Unit tests for AddReturn > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/Koha/Plugins/Circulation_hooks.t | 13 ++++++++++++- > 1 file changed, 12 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Plugins/Circulation_hooks.t b/t/db_dependent/Koha/Plugins/Circulation_hooks.t >index 9254f5395a2..031da43f7af 100755 >--- a/t/db_dependent/Koha/Plugins/Circulation_hooks.t >+++ b/t/db_dependent/Koha/Plugins/Circulation_hooks.t >@@ -44,7 +44,7 @@ t::lib::Mocks::mock_config( 'enable_plugins', 1 ); > > subtest '_after_circ_action() hook tests' => sub { > >- plan tests => 2; >+ plan tests => 3; > > $schema->storage->txn_begin; > >@@ -91,6 +91,17 @@ subtest '_after_circ_action() hook tests' => sub { > 'AddRenewal calls the after_circ_action hook'; > }; > >+ subtest 'AddReturn' => sub { >+ plan tests => 1; >+ >+ warning_like { >+ AddReturn( $patron->borrowernumber, $item->id, >+ $patron->branchcode ); >+ } >+ qr/after_circ_action called with action: checkin, ref: DateTime/, >+ 'AddReturn calls the after_circ_action hook'; >+ }; >+ > $schema->storage->txn_rollback; > Koha::Plugins::Methods->delete; > }; >-- >2.27.0
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 21468
:
106571
|
106572
|
106573
|
106574
|
106580
|
106581
|
106582
|
106583
|
106883
|
106884
|
106885
|
106886
|
106887
|
107261
|
107262
|
107263
|
107264
|
107265
|
107266