Lines 130-136
subtest 'after_hold_action (placed) hook tests' => sub {
Link Here
|
130 |
|
130 |
|
131 |
subtest 'Koha::Hold tests' => sub { |
131 |
subtest 'Koha::Hold tests' => sub { |
132 |
|
132 |
|
133 |
plan tests => 4; |
133 |
plan tests => 7; |
134 |
|
134 |
|
135 |
$schema->storage->txn_begin; |
135 |
$schema->storage->txn_begin; |
136 |
|
136 |
|
Lines 181-186
subtest 'Koha::Hold tests' => sub {
Link Here
|
181 |
qr/after_hold_action called with action: resume, ref: Koha::Hold/, |
181 |
qr/after_hold_action called with action: resume, ref: Koha::Hold/, |
182 |
'->resume calls the after_hold_action hook'; |
182 |
'->resume calls the after_hold_action hook'; |
183 |
|
183 |
|
|
|
184 |
warning_like { |
185 |
$hold->set_transfer; |
186 |
} |
187 |
qr/after_hold_action called with action: transfer, ref: Koha::Hold/, |
188 |
'->set_transfer calls the after_hold_action hook'; |
189 |
|
190 |
warning_like { |
191 |
$hold->set_processing; |
192 |
} |
193 |
qr/after_hold_action called with action: processing, ref: Koha::Hold/, |
194 |
'->set_processing calls the after_hold_action hook'; |
195 |
|
196 |
warning_like { |
197 |
$hold->set_waiting; |
198 |
} |
199 |
qr/after_hold_action called with action: waiting, ref: Koha::Hold/, |
200 |
'->set_waiting calls the after_hold_action hook'; |
201 |
|
184 |
warning_like { |
202 |
warning_like { |
185 |
$hold->cancel; |
203 |
$hold->cancel; |
186 |
} |
204 |
} |
187 |
- |
|
|