Bugzilla – Attachment 78459 Details for
Bug 20968
Plugins: Add hooks to enable plugin integration into catalogue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20968: Add unit tests
Bug-20968-Add-unit-tests.patch (text/plain), 2.05 KB, created by
Andrew Isherwood
on 2018-09-06 09:56:05 UTC
(
hide
)
Description:
Bug 20968: Add unit tests
Filename:
MIME Type:
Creator:
Andrew Isherwood
Created:
2018-09-06 09:56:05 UTC
Size:
2.05 KB
patch
obsolete
>From 1bd75772368b1d66c23d10d6760fee34b2eea497 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 27 Jun 2018 17:13:37 +0000 >Subject: [PATCH] Bug 20968: Add unit tests > >--- > t/db_dependent/Plugins.t | 4 +++- > t/lib/Koha/Plugin/Test.pm | 10 ++++++++++ > 2 files changed, 13 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Plugins.t b/t/db_dependent/Plugins.t >index f82d3b25be..49ce63b852 100755 >--- a/t/db_dependent/Plugins.t >+++ b/t/db_dependent/Plugins.t >@@ -2,7 +2,7 @@ > > use Modern::Perl; > >-use Test::More tests => 35; >+use Test::More tests => 37; > use CGI; > use File::Basename; > use File::Temp qw( tempdir tempfile ); >@@ -42,6 +42,8 @@ isa_ok( $plugin, "Koha::Plugins::Base", 'Test plugin parent class' ); > ok( $plugin->can('report'), 'Test plugin can report' ); > ok( $plugin->can('tool'), 'Test plugin can tool' ); > 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('get_intranet_catalog_toolbar_button'), 'Test plugin can get_intranet_catalog_toolbar_button' ); > ok( $plugin->can('opac_online_payment'), 'Test plugin can opac_online_payment' ); > 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' ); >diff --git a/t/lib/Koha/Plugin/Test.pm b/t/lib/Koha/Plugin/Test.pm >index 3452af9302..55eb4ed0d0 100644 >--- a/t/lib/Koha/Plugin/Test.pm >+++ b/t/lib/Koha/Plugin/Test.pm >@@ -43,6 +43,16 @@ sub to_marc { > return "Koha::Plugin::Test::to_marc"; > } > >+sub get_intranet_catalog_toolbar_button { >+ my ( $self, $args ) = @_; >+ return "Koha::Plugin::Test::get_intranet_catalog_toolbar_button"; >+} >+ >+sub intranet_catalog_biblio_enhancements { >+ my ( $self, $args ) = @_; >+ return "Koha::Plugin::Test::intranet_catalog_biblio_enhancements"; >+} >+ > sub opac_online_payment { > my ( $self, $args ) = @_; > return "Koha::Plugin::Test::opac_online_payment"; >-- >2.11.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 20968
:
76374
|
76375
|
76530
|
76531
|
76532
|
76540
|
76541
|
76555
|
76564
|
76565
|
76566
|
76567
|
76568
|
77782
|
77783
|
77784
|
77785
|
77786
|
78457
|
78458
|
78459
|
78460
|
78461
|
79804
|
79805
|
79806
|
79807
|
79808
|
80394
|
80395
|
80396
|
80397
|
80398
|
80615
|
80616
|
80617
|
80618
|
80619