Lines 1452-1458
$schema->storage->txn_rollback();
Link Here
|
1452 |
|
1452 |
|
1453 |
subtest 'IsAvailableForItemLevelRequest() tests' => sub { |
1453 |
subtest 'IsAvailableForItemLevelRequest() tests' => sub { |
1454 |
|
1454 |
|
1455 |
plan tests => 2; |
1455 |
plan tests => 3; |
1456 |
|
1456 |
|
1457 |
$schema->storage->txn_begin; |
1457 |
$schema->storage->txn_begin; |
1458 |
|
1458 |
|
Lines 1484-1489
subtest 'IsAvailableForItemLevelRequest() tests' => sub {
Link Here
|
1484 |
"Item not available for item-level hold because no effective item type" |
1484 |
"Item not available for item-level hold because no effective item type" |
1485 |
); |
1485 |
); |
1486 |
|
1486 |
|
|
|
1487 |
my $item_1 = $builder->build_sample_item({ notforloan => -1 }); |
1488 |
ok( |
1489 |
C4::Reserves::IsAvailableForItemLevelRequest( $item_1, $patron ), |
1490 |
"Item not available for item-level hold because no effective item type" |
1491 |
); |
1487 |
$schema->storage->txn_rollback; |
1492 |
$schema->storage->txn_rollback; |
1488 |
}; |
1493 |
}; |
1489 |
|
1494 |
|
1490 |
- |
|
|