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

(-)a/t/db_dependent/Koha/Plugins/Biblio_and_Items_plugin_hooks.t (+3 lines)
Lines 52-57 subtest 'after_biblio_action() and after_item_action() hooks tests' => sub { Link Here
52
52
53
    my $plugin = Koha::Plugin::Test->new->enable;
53
    my $plugin = Koha::Plugin::Test->new->enable;
54
54
55
    my $test_plugin = Test::MockModule->new('Koha::Plugin::Test');
56
    $test_plugin->mock( 'barcode_transform', undef );
57
55
    my $biblio_id;
58
    my $biblio_id;
56
59
57
    warning_like { ( $biblio_id, undef ) = C4::Biblio::AddBiblio( MARC::Record->new(), '' ); }
60
    warning_like { ( $biblio_id, undef ) = C4::Biblio::AddBiblio( MARC::Record->new(), '' ); }
(-)a/t/db_dependent/Koha/Plugins/Circulation_hooks.t (+1 lines)
Lines 66-71 subtest 'after_circ_action() hook tests' => sub { Link Here
66
    my $test_plugin = Test::MockModule->new('Koha::Plugin::Test');
66
    my $test_plugin = Test::MockModule->new('Koha::Plugin::Test');
67
    $test_plugin->mock( 'after_item_action',   undef );
67
    $test_plugin->mock( 'after_item_action',   undef );
68
    $test_plugin->mock( 'after_biblio_action', undef );
68
    $test_plugin->mock( 'after_biblio_action', undef );
69
    $test_plugin->mock( 'barcode_transform', undef );
69
70
70
    my $biblio = $builder->build_sample_biblio();
71
    my $biblio = $builder->build_sample_biblio();
71
    my $item_1 = $builder->build_sample_item( { biblionumber => $biblio->biblionumber } );
72
    my $item_1 = $builder->build_sample_item( { biblionumber => $biblio->biblionumber } );
(-)a/t/lib/Koha/Plugin/Test.pm (-2 / +1 lines)
Lines 95-101 sub intranet_js { Link Here
95
95
96
sub barcode_transform {
96
sub barcode_transform {
97
    my ( $self, $type, $barcode ) = @_;
97
    my ( $self, $type, $barcode ) = @_;
98
    return "Koha::Plugin::Test::barcode_transform";
98
    Koha::Exceptions::Exception->throw("barcode_transform called with parameters: $type, $barcode");
99
}
99
}
100
100
101
sub barcode_generate {
101
sub barcode_generate {
102
- 

Return to bug 26351