Lines 2376-2382
subtest 'store() tests' => sub {
Link Here
|
2376 |
|
2376 |
|
2377 |
subtest 'Recalls tests' => sub { |
2377 |
subtest 'Recalls tests' => sub { |
2378 |
|
2378 |
|
2379 |
plan tests => 23; |
2379 |
plan tests => 24; |
2380 |
|
2380 |
|
2381 |
$schema->storage->txn_begin; |
2381 |
$schema->storage->txn_begin; |
2382 |
|
2382 |
|
Lines 2558-2563
subtest 'Recalls tests' => sub {
Link Here
|
2558 |
|
2558 |
|
2559 |
is( $item1->has_pending_recall, 0, 'Item does not have pending recall' ); |
2559 |
is( $item1->has_pending_recall, 0, 'Item does not have pending recall' ); |
2560 |
|
2560 |
|
|
|
2561 |
$recall2->start_transfer({ item => $item1 }); |
2562 |
is( $item1->has_pending_recall, 1, 'Item has a pending recall and is in transit to fill it' ); |
2563 |
$recall2->revert_transfer; |
2564 |
|
2561 |
# return recall based on recalldate |
2565 |
# return recall based on recalldate |
2562 |
$check_recall = $item1->check_recalls; |
2566 |
$check_recall = $item1->check_recalls; |
2563 |
is( $check_recall->patron_id, $patron1->borrowernumber, "No waiting recall, so oldest recall is returned" ); |
2567 |
is( $check_recall->patron_id, $patron1->borrowernumber, "No waiting recall, so oldest recall is returned" ); |
2564 |
- |
|
|