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