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

(-)a/t/db_dependent/Koha/Hold.t (-4 / +1 lines)
Lines 1092-1098 subtest 'change_type() tests' => sub { Link Here
1092
1092
1093
subtest 'cancel() tests' => sub {
1093
subtest 'cancel() tests' => sub {
1094
1094
1095
    plan tests => 12;
1095
    plan tests => 11;
1096
1096
1097
    $schema->storage->txn_begin;
1097
    $schema->storage->txn_begin;
1098
1098
Lines 1172-1179 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
    is( $get_prepared_letter_called, 0, 'GetPreparedLetter not called if notify_patron passed and no cancellation_reason passed' );
1176
1177
    isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' );
1175
    isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' );
1178
    is( $hold->priority, 0, 'priority gets set to 0' );
1176
    is( $hold->priority, 0, 'priority gets set to 0' );
1179
    is( $hold->cancellation_reason, undef, 'cancellation_reason not passed' );
1177
    is( $hold->cancellation_reason, undef, 'cancellation_reason not passed' );
1180
- 

Return to bug 26282