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

(-)a/t/db_dependent/Koha/BackgroundJob.t (-2 / +1 lines)
Lines 80-86 subtest 'enqueue() tests' => sub { Link Here
80
        'Enqueue BatchUpdateItem without data throws exception';
80
        'Enqueue BatchUpdateItem without data throws exception';
81
81
82
    # The following test needs a mock to trigger the exception
82
    # The following test needs a mock to trigger the exception
83
    my $mock = Test::MockModule->new('Net::Stomp')->mock( 'send_with_receipt', 0 );
83
    my $mock = Test::MockModule->new('Net::Stomp')->mock( 'send_with_receipt', sub { 0 } );
84
    throws_ok { Koha::BackgroundJob::MARCImportCommitBatch->new->enqueue }
84
    throws_ok { Koha::BackgroundJob::MARCImportCommitBatch->new->enqueue }
85
    'Koha::Exceptions::BackgroundJob',
85
    'Koha::Exceptions::BackgroundJob',
86
        'Enqueue MARCImportCommitBatch with mock throws exception';
86
        'Enqueue MARCImportCommitBatch with mock throws exception';
87
- 

Return to bug 35962