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

(-)a/t/db_dependent/Koha/Plugins/Circulation_hooks.t (-2 / +12 lines)
Lines 44-50 t::lib::Mocks::mock_config( 'enable_plugins', 1 ); Link Here
44
44
45
subtest '_after_circ_action() hook tests' => sub {
45
subtest '_after_circ_action() hook tests' => sub {
46
46
47
    plan tests => 2;
47
    plan tests => 3;
48
48
49
    $schema->storage->txn_begin;
49
    $schema->storage->txn_begin;
50
50
Lines 91-96 subtest '_after_circ_action() hook tests' => sub { Link Here
91
          'AddRenewal calls the after_circ_action hook';
91
          'AddRenewal calls the after_circ_action hook';
92
    };
92
    };
93
93
94
    subtest 'AddReturn' => sub {
95
        plan tests => 1;
96
97
        warning_like {
98
            AddReturn( $patron->borrowernumber, $item->id,
99
                $patron->branchcode );
100
        }
101
        qr/after_circ_action called with action: checkin, ref: DateTime/,
102
          'AddReturn calls the after_circ_action hook';
103
    };
104
94
    $schema->storage->txn_rollback;
105
    $schema->storage->txn_rollback;
95
    Koha::Plugins::Methods->delete;
106
    Koha::Plugins::Methods->delete;
96
};
107
};
97
- 

Return to bug 21468