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

(-)a/t/db_dependent/Reserves.t (-3 / +11 lines)
Lines 1443-1449 $schema->storage->txn_rollback(); Link Here
1443
1443
1444
subtest 'IsAvailableForItemLevelRequest() tests' => sub {
1444
subtest 'IsAvailableForItemLevelRequest() tests' => sub {
1445
1445
1446
    plan tests => 2;
1446
    plan tests => 3;
1447
1447
1448
    $schema->storage->txn_begin;
1448
    $schema->storage->txn_begin;
1449
1449
Lines 1475-1480 subtest 'IsAvailableForItemLevelRequest() tests' => sub { Link Here
1475
        "Item not available for item-level hold because no effective item type"
1475
        "Item not available for item-level hold because no effective item type"
1476
    );
1476
    );
1477
1477
1478
    ok(
1479
        !C4::Reserves::IsAvailableForItemLevelRequest( $item, undef ),
1480
        "Item not available for item-level hold because no patron defined"
1481
    );
1482
1478
    $schema->storage->txn_rollback;
1483
    $schema->storage->txn_rollback;
1479
};
1484
};
1480
1485
Lines 1582-1588 subtest 'AlterPriorty() tests' => sub { Link Here
1582
1587
1583
subtest 'CanBookBeReserved() tests' => sub {
1588
subtest 'CanBookBeReserved() tests' => sub {
1584
1589
1585
    plan tests => 2;
1590
    plan tests => 3;
1586
1591
1587
    $schema->storage->txn_begin;
1592
    $schema->storage->txn_begin;
1588
1593
Lines 1653-1658 subtest 'CanBookBeReserved() tests' => sub { Link Here
1653
        { itemtype => $itype->id } );
1658
        { itemtype => $itype->id } );
1654
    is_deeply( $res, { status => '' }, 'Holds on itemtype limit reached' );
1659
    is_deeply( $res, { status => '' }, 'Holds on itemtype limit reached' );
1655
1660
1661
    $res = CanBookBeReserved( undef, $biblio->id, $library->id,
1662
        { itemtype => $itype->id } );
1663
    is_deeply( $res, { status => '' }, 'Patron id undefined' );
1664
1656
    $schema->storage->txn_rollback;
1665
    $schema->storage->txn_rollback;
1657
};
1666
};
1658
1667
1659
- 

Return to bug 30556