From e28d39b7bccc44f0d890f3e3828b6d830e2230e8 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 27 Nov 2020 09:04:05 +0000 Subject: [PATCH] Bug 26282: (QA follow-up) Update test Signed-off-by: Josef Moravec Signed-off-by: Martin Renvoize Signed-off-by: Tomas Cohen Arazi Rebased-by: Victor Grousset/tuxayo --- t/db_dependent/Koha/Hold.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Hold.t b/t/db_dependent/Koha/Hold.t index 4b86529137f..04cacbffe75 100755 --- a/t/db_dependent/Koha/Hold.t +++ b/t/db_dependent/Koha/Hold.t @@ -1172,7 +1172,7 @@ subtest 'cancel() tests' => sub { $get_prepared_letter_called = 0; $hold->cancel({ notify_patron => 1 }); - ok( $get_prepared_letter_called, 'GetPreparedLetter called if notify_patron passed' ); + is( $get_prepared_letter_called, 0, 'GetPreparedLetter not called if notify_patron passed and no cancellation_reason passed' ); isnt( $hold->cancellationdate, undef, 'cancellationdate gets set to the passed value' ); is( $hold->priority, 0, 'priority gets set to 0' ); -- 2.39.3 (Apple Git-146)