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

(-)a/t/db_dependent/Koha/Hold.t (-2 / +1 lines)
Lines 134-140 subtest 'cancel() tests' => sub { Link Here
134
134
135
    $get_prepared_letter_called = 0;
135
    $get_prepared_letter_called = 0;
136
    $hold->cancel({ notify_patron => 1 });
136
    $hold->cancel({ notify_patron => 1 });
137
    ok( $get_prepared_letter_called, 'GetPreparedLetter called if notify_patron passed' );
137
    is( $get_prepared_letter_called, 0, 'GetPreparedLetter not called if notify_patron passed and no cancellation_reason passed' );
138
138
139
    isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' );
139
    isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' );
140
    is( $hold->priority, 0, 'priority gets set to 0' );
140
    is( $hold->priority, 0, 'priority gets set to 0' );
141
- 

Return to bug 26282