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

(-)a/t/db_dependent/Reserves.t (-2 / +26 lines)
Lines 1507-1513 subtest 'IsAvailableForItemLevelRequest() tests' => sub { Link Here
1507
1507
1508
subtest 'AddReserve() tests' => sub {
1508
subtest 'AddReserve() tests' => sub {
1509
1509
1510
    plan tests => 2;
1510
    plan tests => 4;
1511
1511
1512
    $schema->storage->txn_begin;
1512
    $schema->storage->txn_begin;
1513
1513
Lines 1553-1558 subtest 'AddReserve() tests' => sub { Link Here
1553
    $patron->discard_changes;
1553
    $patron->discard_changes;
1554
    isnt( $patron->lastseen, undef, "Patron activity tracked when hold is a valid trigger" );
1554
    isnt( $patron->lastseen, undef, "Patron activity tracked when hold is a valid trigger" );
1555
1555
1556
    my $reserve_id = AddReserve(
1557
        {
1558
            branchcode      => $library->branchcode,
1559
            borrowernumber  => $patron->id,
1560
            biblionumber    => $biblio->id,
1561
            expiration_date => '2040-04-02'
1562
        }
1563
    );
1564
1565
    my $hold = Koha::Holds->find($reserve_id);
1566
1567
    is( $hold->expirationdate, '2040-04-02', 'Successfully set expiration date' );
1568
1569
    $reserve_id = AddReserve(
1570
        {
1571
            branchcode             => $library->branchcode,
1572
            borrowernumber         => $patron->id,
1573
            biblionumber           => $biblio->id,
1574
            patron_expiration_date => '2040-04-02'
1575
        }
1576
    );
1577
1578
    $hold = Koha::Holds->find($reserve_id);
1579
    is( $hold->patron_expiration_date, '2040-04-02', 'Successfully set patron expiration date' );
1580
1556
    $schema->storage->txn_rollback;
1581
    $schema->storage->txn_rollback;
1557
};
1582
};
1558
1583
1559
- 

Return to bug 39419