Bugzilla – Attachment 106582 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.33 KB, created by
Martin Renvoize (ashimema)
on 2020-07-06 12:48:44 UTC
(
hide
)
Description:
Bug 21468: Unit tests for AddReturn
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-07-06 12:48:44 UTC
Size:
1.33 KB
patch
obsolete
>From b40ba2d7b41b2d0e3bf6f805afcf2bd5690e67f8 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 > >--- > 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 9254f5395a..031da43f7a 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.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 21468
:
106571
|
106572
|
106573
|
106574
|
106580
|
106581
|
106582
|
106583
|
106883
|
106884
|
106885
|
106886
|
106887
|
107261
|
107262
|
107263
|
107264
|
107265
|
107266