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 88-93 subtest 'after_circ_action() hook tests' => sub { Link Here
88
                'AddRenewal calls the after_circ_action hook';
88
                'AddRenewal calls the after_circ_action hook';
89
    };
89
    };
90
90
91
    subtest 'AddReturn' => sub {
92
        plan tests => 1;
93
94
        warning_like {
95
            AddReturn( $patron->borrowernumber, $item->id,
96
                $patron->branchcode );
97
        }
98
        qr/after_circ_action called with action: checkin, ref: DateTime/,
99
          'AddReturn calls the after_circ_action hook';
100
    };
101
91
    $schema->storage->txn_rollback;
102
    $schema->storage->txn_rollback;
92
    Koha::Plugins::Methods->delete;
103
    Koha::Plugins::Methods->delete;
93
};
104
};
94
- 

Return to bug 21468