View | Details | Raw Unified | Return to bug 26282
Collapse All | Expand All

(-)a/t/db_dependent/Koha/Hold.t (-2 / +1 lines)
Lines 1172-1178 subtest 'cancel() tests' => sub { Link Here
1172
1172
1173
    $get_prepared_letter_called = 0;
1173
    $get_prepared_letter_called = 0;
1174
    $hold->cancel({ notify_patron => 1 });
1174
    $hold->cancel({ notify_patron => 1 });
1175
    ok( $get_prepared_letter_called, 'GetPreparedLetter called if notify_patron passed' );
1175
    is( $get_prepared_letter_called, 0, 'GetPreparedLetter not called if notify_patron passed and no cancellation_reason passed' );
1176
1176
1177
    isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' );
1177
    isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' );
1178
    is( $hold->priority, 0, 'priority gets set to 0' );
1178
    is( $hold->priority, 0, 'priority gets set to 0' );
1179
- 

Return to bug 26282