From 6313d6da3e7006acb5d9d2dcf90ed9bab7fb401a Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 9 Jul 2015 11:24:00 -0400 Subject: [PATCH] Bug 13517 [QA Followup] - Fix unit tests Signed-off-by: Jonathan Druart --- t/db_dependent/Hold.t | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Hold.t b/t/db_dependent/Hold.t index a91917c..53ee364 100755 --- a/t/db_dependent/Hold.t +++ b/t/db_dependent/Hold.t @@ -49,7 +49,7 @@ is( $dt, undef, "Koha::Hold->waiting_expires_on returns undef if ReservesMaxPick is( $hold->is_waiting, 1, 'The hold is waiting' ); is( $hold->is_found, 1, 'The hold is found'); -isnt( $hold->is_in_transit, 'The hold is not in transit' ); +ok( !$hold->is_in_transit, 'The hold is not in transit' ); C4::Context->set_preference( 'ReservesMaxPickUpDelay', '5' ); $dt = $hold->waiting_expires_on(); @@ -67,7 +67,7 @@ $dt = $hold->waiting_expires_on(); is( $dt, undef, "Koha::Hold->waiting_expires_on returns undef if found is not 'W' ( Set to empty string )"); isnt( $hold->is_waiting, 1, 'The hold is not waiting (W)' ); is( $hold->is_found, 0, 'The hold is not found' ); -isnt( $hold->is_in_transit, 'The hold is not in transit' ); +ok( !$hold->is_in_transit, 'The hold is not in transit' ); $schema->storage->txn_rollback(); -- 1.7.2.5