Lines 80-87
subtest 'after_hold_create() hook tests' => sub {
Link Here
|
80 |
qr/after_hold_create called with parameter Koha::Hold/ ], |
80 |
qr/after_hold_create called with parameter Koha::Hold/ ], |
81 |
'AddReserve calls the after_hold_create hook, deprecation warning found'; |
81 |
'AddReserve calls the after_hold_create hook, deprecation warning found'; |
82 |
|
82 |
|
83 |
$schema->storage->txn_rollback; |
|
|
84 |
Koha::Plugins::Methods->delete; |
83 |
Koha::Plugins::Methods->delete; |
|
|
84 |
$schema->storage->txn_rollback; |
85 |
}; |
85 |
}; |
86 |
|
86 |
|
87 |
subtest 'after_hold_action (placed) hook tests' => sub { |
87 |
subtest 'after_hold_action (placed) hook tests' => sub { |
Lines 124-131
subtest 'after_hold_action (placed) hook tests' => sub {
Link Here
|
124 |
} |
124 |
} |
125 |
[ qr/after_hold_create is deprecated and will be removed soon/, qr/after_hold_action called with action: place, ref: Koha::Hold/, ], 'AddReserve calls the after_hold_action hook'; |
125 |
[ qr/after_hold_create is deprecated and will be removed soon/, qr/after_hold_action called with action: place, ref: Koha::Hold/, ], 'AddReserve calls the after_hold_action hook'; |
126 |
|
126 |
|
127 |
$schema->storage->txn_rollback; |
|
|
128 |
Koha::Plugins::Methods->delete; |
127 |
Koha::Plugins::Methods->delete; |
|
|
128 |
$schema->storage->txn_rollback; |
129 |
}; |
129 |
}; |
130 |
|
130 |
|
131 |
subtest 'Koha::Hold tests' => sub { |
131 |
subtest 'Koha::Hold tests' => sub { |
Lines 205-210
subtest 'Koha::Hold tests' => sub {
Link Here
|
205 |
qr/after_hold_action called with action: cancel, ref: Koha::Old::Hold/, |
205 |
qr/after_hold_action called with action: cancel, ref: Koha::Old::Hold/, |
206 |
'->cancel calls the after_hold_action hook'; |
206 |
'->cancel calls the after_hold_action hook'; |
207 |
|
207 |
|
208 |
$schema->storage->txn_rollback; |
|
|
209 |
Koha::Plugins::Methods->delete; |
208 |
Koha::Plugins::Methods->delete; |
|
|
209 |
$schema->storage->txn_rollback; |
210 |
}; |
210 |
}; |
211 |
- |
|
|