Bugzilla – Attachment 107042 Details for
Bug 24031
Add plugin hook after_hold_create
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24031: Add hook to test plugin with unit test
Bug-24031-Add-hook-to-test-plugin-with-unit-test.patch (text/plain), 1.99 KB, created by
Kyle M Hall (khall)
on 2020-07-17 15:33:13 UTC
(
hide
)
Description:
Bug 24031: Add hook to test plugin with unit test
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2020-07-17 15:33:13 UTC
Size:
1.99 KB
patch
obsolete
>From 06b350ac17a5d135424350f05c2922cd4c405fa2 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 17 Jul 2020 11:32:57 -0400 >Subject: [PATCH] Bug 24031: Add hook to test plugin with unit test > >--- > t/db_dependent/Koha/Plugins/Plugins.t | 3 ++- > t/lib/Koha/Plugin/Test.pm | 4 ++++ > 2 files changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Plugins/Plugins.t b/t/db_dependent/Koha/Plugins/Plugins.t >index e6a353ceee..92b5c5c6b7 100755 >--- a/t/db_dependent/Koha/Plugins/Plugins.t >+++ b/t/db_dependent/Koha/Plugins/Plugins.t >@@ -25,7 +25,7 @@ use File::Temp qw( tempdir tempfile ); > use FindBin qw($Bin); > use Module::Load::Conditional qw(can_load); > use Test::MockModule; >-use Test::More tests => 52; >+use Test::More tests => 53; > > use C4::Context; > use Koha::Database; >@@ -169,6 +169,7 @@ ok( $plugin->can('to_marc'), 'Test plugin can to_marc' ); > ok( $plugin->can('intranet_catalog_biblio_enhancements'), 'Test plugin can intranet_catalog_biblio_enhancements'); > ok( $plugin->can('intranet_catalog_biblio_enhancements_toolbar_button'), 'Test plugin can intranet_catalog_biblio_enhancements_toolbar_button' ); > ok( $plugin->can('opac_online_payment'), 'Test plugin can opac_online_payment' ); >+ok( $plugin->can('after_hold_create'), 'Test plugin can after_hold_create' ); > ok( $plugin->can('opac_online_payment_begin'), 'Test plugin can opac_online_payment_begin' ); > ok( $plugin->can('opac_online_payment_end'), 'Test plugin can opac_online_payment_end' ); > ok( $plugin->can('opac_head'), 'Test plugin can opac_head' ); >diff --git a/t/lib/Koha/Plugin/Test.pm b/t/lib/Koha/Plugin/Test.pm >index 8036c1fd5e..e46bf865c0 100644 >--- a/t/lib/Koha/Plugin/Test.pm >+++ b/t/lib/Koha/Plugin/Test.pm >@@ -127,6 +127,10 @@ sub api_namespace { > return "testplugin"; > } > >+sub after_hold_create { >+ return "Koha::Plugin::Test::after_hold_create"; >+} >+ > sub after_biblio_action { > my ( $self, $params ) = @_; > my $action = $params->{action} // ''; >-- >2.24.1 (Apple Git-126)
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 24031
:
95358
|
95657
|
95658
|
98788
|
98789
|
105256
|
105257
|
105693
|
105694
|
105695
|
105696
|
105697
| 107042 |
107365