View | Details | Raw Unified | Return to bug 24031
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Plugins/Plugins.t (-1 / +2 lines)
Lines 25-31 use File::Temp qw( tempdir tempfile ); Link Here
25
use FindBin qw($Bin);
25
use FindBin qw($Bin);
26
use Module::Load::Conditional qw(can_load);
26
use Module::Load::Conditional qw(can_load);
27
use Test::MockModule;
27
use Test::MockModule;
28
use Test::More tests => 52;
28
use Test::More tests => 53;
29
29
30
use C4::Context;
30
use C4::Context;
31
use Koha::Database;
31
use Koha::Database;
Lines 169-174 ok( $plugin->can('to_marc'), 'Test plugin can to_marc' ); Link Here
169
ok( $plugin->can('intranet_catalog_biblio_enhancements'), 'Test plugin can intranet_catalog_biblio_enhancements');
169
ok( $plugin->can('intranet_catalog_biblio_enhancements'), 'Test plugin can intranet_catalog_biblio_enhancements');
170
ok( $plugin->can('intranet_catalog_biblio_enhancements_toolbar_button'), 'Test plugin can intranet_catalog_biblio_enhancements_toolbar_button' );
170
ok( $plugin->can('intranet_catalog_biblio_enhancements_toolbar_button'), 'Test plugin can intranet_catalog_biblio_enhancements_toolbar_button' );
171
ok( $plugin->can('opac_online_payment'), 'Test plugin can opac_online_payment' );
171
ok( $plugin->can('opac_online_payment'), 'Test plugin can opac_online_payment' );
172
ok( $plugin->can('after_hold_create'), 'Test plugin can after_hold_create' );
172
ok( $plugin->can('opac_online_payment_begin'), 'Test plugin can opac_online_payment_begin' );
173
ok( $plugin->can('opac_online_payment_begin'), 'Test plugin can opac_online_payment_begin' );
173
ok( $plugin->can('opac_online_payment_end'), 'Test plugin can opac_online_payment_end' );
174
ok( $plugin->can('opac_online_payment_end'), 'Test plugin can opac_online_payment_end' );
174
ok( $plugin->can('opac_head'), 'Test plugin can opac_head' );
175
ok( $plugin->can('opac_head'), 'Test plugin can opac_head' );
(-)a/t/lib/Koha/Plugin/Test.pm (-1 / +4 lines)
Lines 127-132 sub api_namespace { Link Here
127
    return "testplugin";
127
    return "testplugin";
128
}
128
}
129
129
130
sub after_hold_create {
131
    return "Koha::Plugin::Test::after_hold_create";
132
}
133
130
sub after_biblio_action {
134
sub after_biblio_action {
131
    my ( $self, $params ) = @_;
135
    my ( $self, $params ) = @_;
132
    my $action    = $params->{action} // '';
136
    my $action    = $params->{action} // '';
133
- 

Return to bug 24031