Bug 13517 [QA Followup] - Fix unit tests

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
This commit is contained in:
Kyle M Hall 2015-07-09 11:24:00 -04:00 committed by Jesse Weaver
parent 3a49b20418
commit 2a937b4b85
1 changed files with 2 additions and 2 deletions

View File

@ -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();