|
Lines 287-293
subtest 'cancel() tests' => sub {
Link Here
|
| 287 |
|
287 |
|
| 288 |
$get_prepared_letter_called = 0; |
288 |
$get_prepared_letter_called = 0; |
| 289 |
$hold->cancel({ notify_patron => 1 }); |
289 |
$hold->cancel({ notify_patron => 1 }); |
| 290 |
ok( $get_prepared_letter_called, 'GetPreparedLetter called if notify_patron passed' ); |
290 |
is( $get_prepared_letter_called, 0, 'GetPreparedLetter not called if notify_patron passed and no cancellation_reason passed' ); |
| 291 |
|
291 |
|
| 292 |
isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' ); |
292 |
isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' ); |
| 293 |
is( $hold->priority, 0, 'priority gets set to 0' ); |
293 |
is( $hold->priority, 0, 'priority gets set to 0' ); |
| 294 |
- |
|
|