From 69c041bfe496250937b3c2fc4c5d0e96f0eddd20 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 --- 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 445132e739..f74c359d8e 100755 --- a/t/db_dependent/Koha/Hold.t +++ b/t/db_dependent/Koha/Hold.t @@ -134,7 +134,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.11.0