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

(-)a/t/db_dependent/Reserves.t (-3 / +6 lines)
Lines 1313-1323 subtest 'ModReserveAffect logging' => sub { Link Here
1313
    $hold = Koha::Holds->find($reserve_id);
1313
    $hold = Koha::Holds->find($reserve_id);
1314
    is( $hold->timestamp, $previous_timestamp, 'Make sure the previous timestamp has been used' );
1314
    is( $hold->timestamp, $previous_timestamp, 'Make sure the previous timestamp has been used' );
1315
1315
1316
    # Avoid warnings
1317
    my $reserve_mock = Test::MockModule->new('C4::Reserves');
1318
    $reserve_mock->mock( '_koha_notify_reserve', undef );
1319
1316
    # Mark it waiting
1320
    # Mark it waiting
1317
    ModReserveAffect( $item->itemnumber, $patron->borrowernumber );
1321
    ModReserveAffect( $item->itemnumber, $patron->borrowernumber );
1318
1322
1319
    $hold = Koha::Holds->find($reserve_id);
1323
    $hold->discard_changes;
1320
    is( $hold->found, 'W', 'Hold has been set waiting' );
1324
    ok( $hold->is_waiting, 'Hold has been set waiting' );
1321
    isnt( $hold->timestamp, $previous_timestamp, 'The timestamp has been modified' );
1325
    isnt( $hold->timestamp, $previous_timestamp, 'The timestamp has been modified' );
1322
1326
1323
    my $log = Koha::ActionLogs->search({ module => 'HOLDS', action => 'MODIFY', object => $hold->reserve_id })->next;
1327
    my $log = Koha::ActionLogs->search({ module => 'HOLDS', action => 'MODIFY', object => $hold->reserve_id })->next;
1324
- 

Return to bug 28503