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

(-)a/t/db_dependent/Koha/Hold.t (-2 / +1 lines)
Lines 283-289 subtest 'cancel() tests' => sub { Link Here
283
283
284
    $get_prepared_letter_called = 0;
284
    $get_prepared_letter_called = 0;
285
    $hold->cancel({ notify_patron => 1 });
285
    $hold->cancel({ notify_patron => 1 });
286
    ok( $get_prepared_letter_called, 'GetPreparedLetter called if notify_patron passed' );
286
    is( $get_prepared_letter_called, 0, 'GetPreparedLetter not called if notify_patron passed and no cancellation_reason passed' );
287
287
288
    isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' );
288
    isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' );
289
    is( $hold->priority, 0, 'priority gets set to 0' );
289
    is( $hold->priority, 0, 'priority gets set to 0' );
290
- 

Return to bug 26282