Lines 2442-2448
subtest 'store() tests' => sub {
Link Here
|
2442 |
|
2442 |
|
2443 |
subtest 'Recalls tests' => sub { |
2443 |
subtest 'Recalls tests' => sub { |
2444 |
|
2444 |
|
2445 |
plan tests => 23; |
2445 |
plan tests => 24; |
2446 |
|
2446 |
|
2447 |
$schema->storage->txn_begin; |
2447 |
$schema->storage->txn_begin; |
2448 |
|
2448 |
|
Lines 2624-2629
subtest 'Recalls tests' => sub {
Link Here
|
2624 |
|
2624 |
|
2625 |
is( $item1->has_pending_recall, 0, 'Item does not have pending recall' ); |
2625 |
is( $item1->has_pending_recall, 0, 'Item does not have pending recall' ); |
2626 |
|
2626 |
|
|
|
2627 |
$recall2->start_transfer( { item => $item1 } ); |
2628 |
is( $item1->has_pending_recall, 1, 'Item has a pending recall and is in transit to fill it' ); |
2629 |
$recall2->revert_transfer; |
2630 |
|
2627 |
# return recall based on recalldate |
2631 |
# return recall based on recalldate |
2628 |
$check_recall = $item1->check_recalls; |
2632 |
$check_recall = $item1->check_recalls; |
2629 |
is( $check_recall->patron_id, $patron1->borrowernumber, "No waiting recall, so oldest recall is returned" ); |
2633 |
is( $check_recall->patron_id, $patron1->borrowernumber, "No waiting recall, so oldest recall is returned" ); |
2630 |
- |
|
|