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

(-)a/t/db_dependent/Plugins.t (-1 / +3 lines)
Lines 9-15 use File::Temp qw( tempdir tempfile ); Link Here
9
use FindBin qw($Bin);
9
use FindBin qw($Bin);
10
use Module::Load::Conditional qw(can_load);
10
use Module::Load::Conditional qw(can_load);
11
use Test::MockModule;
11
use Test::MockModule;
12
use Test::More tests => 37;
12
use Test::More tests => 39;
13
13
14
use C4::Context;
14
use C4::Context;
15
15
Lines 42-47 isa_ok( $plugin, "Koha::Plugins::Base", 'Test plugin parent class' ); Link Here
42
ok( $plugin->can('report'), 'Test plugin can report' );
42
ok( $plugin->can('report'), 'Test plugin can report' );
43
ok( $plugin->can('tool'), 'Test plugin can tool' );
43
ok( $plugin->can('tool'), 'Test plugin can tool' );
44
ok( $plugin->can('to_marc'), 'Test plugin can to_marc' );
44
ok( $plugin->can('to_marc'), 'Test plugin can to_marc' );
45
ok( $plugin->can('intranet_catalog_biblio_enhancements'), 'Test plugin can intranet_catalog_biblio_enhancements');
46
ok( $plugin->can('get_intranet_catalog_toolbar_button'), 'Test plugin can get_intranet_catalog_toolbar_button' );
45
ok( $plugin->can('opac_online_payment'), 'Test plugin can opac_online_payment' );
47
ok( $plugin->can('opac_online_payment'), 'Test plugin can opac_online_payment' );
46
ok( $plugin->can('opac_online_payment_begin'), 'Test plugin can opac_online_payment_begin' );
48
ok( $plugin->can('opac_online_payment_begin'), 'Test plugin can opac_online_payment_begin' );
47
ok( $plugin->can('opac_online_payment_end'), 'Test plugin can opac_online_payment_end' );
49
ok( $plugin->can('opac_online_payment_end'), 'Test plugin can opac_online_payment_end' );
(-)a/t/lib/Koha/Plugin/Test.pm (-1 / +10 lines)
Lines 45-50 sub to_marc { Link Here
45
    return "Koha::Plugin::Test::to_marc";
45
    return "Koha::Plugin::Test::to_marc";
46
}
46
}
47
47
48
sub get_intranet_catalog_toolbar_button {
49
    my ( $self, $args ) = @_;
50
    return "Koha::Plugin::Test::get_intranet_catalog_toolbar_button";
51
}
52
53
sub intranet_catalog_biblio_enhancements {
54
    my ( $self, $args ) = @_;
55
    return "Koha::Plugin::Test::intranet_catalog_biblio_enhancements";
56
}
57
48
sub opac_online_payment {
58
sub opac_online_payment {
49
    my ( $self, $args ) = @_;
59
    my ( $self, $args ) = @_;
50
    return "Koha::Plugin::Test::opac_online_payment";
60
    return "Koha::Plugin::Test::opac_online_payment";
51
- 

Return to bug 20968