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

(-)a/t/db_dependent/Koha/Plugins/Plugins.t (-5 / +4 lines)
Lines 108-122 subtest 'more call() tests' => sub { Link Here
108
    my $bc = 1;
108
    my $bc = 1;
109
    warnings_are
109
    warnings_are
110
        { Koha::Plugins->call('item_barcode_transform', \$bc); }
110
        { Koha::Plugins->call('item_barcode_transform', \$bc); }
111
        [ 'Plugin error (Test Plugin): item_barcode_transform called with parameter: 1',
111
        [ qq{Plugin error (Test Plugin): Exception 'Koha::Exception' thrown 'item_barcode_transform called with parameter: 1'\n},
112
          'Plugin error (Test Plugin for item_barcode_transform): item_barcode_transform called with parameter: 2' ];
112
          qq{Plugin error (Test Plugin for item_barcode_transform): Exception 'Koha::Exception' thrown 'item_barcode_transform called with parameter: 2'\n} ];
113
    is( $bc, 8, "Got expected response" );
113
    is( $bc, 8, "Got expected response" );
114
114
115
    my $cn = 'abcd';
115
    my $cn = 'abcd';
116
    warnings_are
116
    warnings_are
117
        { Koha::Plugins->call('item_barcode_transform', \$bc); }
117
        { Koha::Plugins->call('item_barcode_transform', \$bc); }
118
        [ 'Plugin error (Test Plugin): item_barcode_transform called with parameter: 8',
118
        [ qq{Plugin error (Test Plugin): Exception 'Koha::Exception' thrown 'item_barcode_transform called with parameter: 8'\n},
119
          'Plugin error (Test Plugin for item_barcode_transform): item_barcode_transform called with parameter: 16' ];
119
          qq{Plugin error (Test Plugin for item_barcode_transform): Exception 'Koha::Exception' thrown 'item_barcode_transform called with parameter: 16'\n} ];
120
    is( $cn, 'abcd', "Got expected response" );
120
    is( $cn, 'abcd', "Got expected response" );
121
121
122
    t::lib::Mocks::mock_config('enable_plugins', 0);
122
    t::lib::Mocks::mock_config('enable_plugins', 0);
123
- 

Return to bug 29857