View | Details | Raw Unified | Return to bug 13517
Collapse All | Expand All

(-)a/t/db_dependent/Hold.t (-3 / +2 lines)
Lines 49-55 is( $dt, undef, "Koha::Hold->waiting_expires_on returns undef if ReservesMaxPick Link Here
49
49
50
is( $hold->is_waiting, 1, 'The hold is waiting' );
50
is( $hold->is_waiting, 1, 'The hold is waiting' );
51
is( $hold->is_found, 1, 'The hold is found');
51
is( $hold->is_found, 1, 'The hold is found');
52
isnt( $hold->is_in_transit,  'The hold is not in transit' );
52
ok( !$hold->is_in_transit, 'The hold is not in transit' );
53
53
54
C4::Context->set_preference( 'ReservesMaxPickUpDelay', '5' );
54
C4::Context->set_preference( 'ReservesMaxPickUpDelay', '5' );
55
$dt = $hold->waiting_expires_on();
55
$dt = $hold->waiting_expires_on();
Lines 67-73 $dt = $hold->waiting_expires_on(); Link Here
67
is( $dt, undef, "Koha::Hold->waiting_expires_on returns undef if found is not 'W' ( Set to empty string )");
67
is( $dt, undef, "Koha::Hold->waiting_expires_on returns undef if found is not 'W' ( Set to empty string )");
68
isnt( $hold->is_waiting, 1, 'The hold is not waiting (W)' );
68
isnt( $hold->is_waiting, 1, 'The hold is not waiting (W)' );
69
is( $hold->is_found, 0, 'The hold is not found' );
69
is( $hold->is_found, 0, 'The hold is not found' );
70
isnt( $hold->is_in_transit, 'The hold is not in transit' );
70
ok( !$hold->is_in_transit, 'The hold is not in transit' );
71
71
72
$schema->storage->txn_rollback();
72
$schema->storage->txn_rollback();
73
73
74
- 

Return to bug 13517