Lines 7-13
use C4::Items;
Link Here
|
7 |
use C4::Circulation; |
7 |
use C4::Circulation; |
8 |
use Koha::IssuingRule; |
8 |
use Koha::IssuingRule; |
9 |
|
9 |
|
10 |
use Test::More tests => 7; |
10 |
use Test::More tests => 6; |
11 |
|
11 |
|
12 |
use t::lib::TestBuilder; |
12 |
use t::lib::TestBuilder; |
13 |
use t::lib::Mocks; |
13 |
use t::lib::Mocks; |
Lines 255-264
$rule->store();
Link Here
|
255 |
$is = IsAvailableForItemLevelRequest( $item3, $borrower1); |
255 |
$is = IsAvailableForItemLevelRequest( $item3, $borrower1); |
256 |
is( $is, 1, "Item can be held, items in transit are not available" ); |
256 |
is( $is, 1, "Item can be held, items in transit are not available" ); |
257 |
|
257 |
|
258 |
Koha::Holds->find($hold->{reserve_id})->found('F')->store; |
|
|
259 |
|
260 |
$is = IsAvailableForItemLevelRequest( $item3, $borrower1); |
261 |
is( $is, 0, "Item is neither waiting nor in transit." ); |
262 |
|
263 |
# Cleanup |
258 |
# Cleanup |
264 |
$schema->storage->txn_rollback; |
259 |
$schema->storage->txn_rollback; |
265 |
- |
|
|