Bugzilla – Attachment 178355 Details for
Bug 33758
Add a parameter to use the intranet_catalog_biblio_enhancements_toolbar_button Plugin hook
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33758: (follow-up) Fix tests
Bug-33758-follow-up-Fix-tests.patch (text/plain), 2.24 KB, created by
Hammat wele
on 2025-02-19 15:11:36 UTC
(
hide
)
Description:
Bug 33758: (follow-up) Fix tests
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2025-02-19 15:11:36 UTC
Size:
2.24 KB
patch
obsolete
>From 73ea38fbe66badf934df6bdd06f34925c6ae3cc0 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Wed, 19 Feb 2025 15:10:29 +0000 >Subject: [PATCH] Bug 33758: (follow-up) Fix tests > >--- > t/db_dependent/Koha/Plugins/Plugins.t | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Plugins/Plugins.t b/t/db_dependent/Koha/Plugins/Plugins.t >index ad786eb52b..6116cc2768 100755 >--- a/t/db_dependent/Koha/Plugins/Plugins.t >+++ b/t/db_dependent/Koha/Plugins/Plugins.t >@@ -35,6 +35,8 @@ use Koha::Plugins::Methods; > > use t::lib::Mocks; > >+my $builder = t::lib::TestBuilder->new; >+ > BEGIN { > # Mock pluginsdir before loading Plugins module > my $path = dirname(__FILE__) . '/../../../lib/plugins'; >@@ -258,6 +260,7 @@ subtest 'Koha::Plugin::Test' => sub { > ok( can_load( modules => { "Koha::Plugin::Test" => undef } ), 'Test can_load' ); > > my $plugin = Koha::Plugin::Test->new( { enable_plugins => 1, cgi => CGI->new } ); >+ my $biblio = $builder->build_sample_biblio; > > isa_ok( $plugin, "Koha::Plugin::Test", 'Test plugin class' ); > isa_ok( $plugin, "Koha::Plugins::Base", 'Test plugin parent class' ); >@@ -266,7 +269,7 @@ subtest 'Koha::Plugin::Test' => sub { > 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' ); >- is( $plugin->intranet_catalog_biblio_enhancements_toolbar_button({ biblionumber => $biblionumber }), $biblionumber, 'Test plugin can intranet_catalog_biblio_enhancements_toolbar_button with biblionumber parameter'); >+ is( $plugin->intranet_catalog_biblio_enhancements_toolbar_button({ biblionumber => $biblio->biblionumber }), $biblio->biblionumber, 'Test plugin can intranet_catalog_biblio_enhancements_toolbar_button with biblionumber parameter'); > 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('before_send_messages'), 'Test plugin can before_send_messages' ); >-- >2.34.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 33758
:
151426
|
151434
|
151473
|
158160
|
163798
|
178342
|
178354
| 178355