Lines 947-953
subtest 'cancel() tests' => sub {
Link Here
|
947 |
|
947 |
|
948 |
$get_prepared_letter_called = 0; |
948 |
$get_prepared_letter_called = 0; |
949 |
$hold->cancel({ notify_patron => 1 }); |
949 |
$hold->cancel({ notify_patron => 1 }); |
950 |
ok( $get_prepared_letter_called, 'GetPreparedLetter called if notify_patron passed' ); |
950 |
is( $get_prepared_letter_called, 0, 'GetPreparedLetter not called if notify_patron passed and no cancellation_reason passed' ); |
951 |
|
951 |
|
952 |
isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' ); |
952 |
isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' ); |
953 |
is( $hold->priority, 0, 'priority gets set to 0' ); |
953 |
is( $hold->priority, 0, 'priority gets set to 0' ); |
954 |
- |
|
|