From 8de4ce166e0ec8718d16379e300da90962adfb12 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 7d051c3bc6..e67a4e751d 100755 --- a/t/db_dependent/Koha/Hold.t +++ b/t/db_dependent/Koha/Hold.t @@ -947,7 +947,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.37.1