Lines 1836-1842
subtest 'store() tests' => sub {
Link Here
|
1836 |
|
1836 |
|
1837 |
subtest 'Recalls tests' => sub { |
1837 |
subtest 'Recalls tests' => sub { |
1838 |
|
1838 |
|
1839 |
plan tests => 22; |
1839 |
plan tests => 23; |
1840 |
|
1840 |
|
1841 |
$schema->storage->txn_begin; |
1841 |
$schema->storage->txn_begin; |
1842 |
|
1842 |
|
Lines 2017-2022
subtest 'Recalls tests' => sub {
Link Here
|
2017 |
|
2017 |
|
2018 |
is( $item1->has_pending_recall, 0, 'Item does not have pending recall' ); |
2018 |
is( $item1->has_pending_recall, 0, 'Item does not have pending recall' ); |
2019 |
|
2019 |
|
|
|
2020 |
$recall2->start_transfer({ item => $item1 }); |
2021 |
is( $item1->has_pending_recall, 1, 'Item has a pending recall and is in transit to fill it' ); |
2022 |
$recall2->revert_transfer; |
2023 |
|
2020 |
# return recall based on recalldate |
2024 |
# return recall based on recalldate |
2021 |
$check_recall = $item1->check_recalls; |
2025 |
$check_recall = $item1->check_recalls; |
2022 |
is( $check_recall->patron_id, $patron1->borrowernumber, "No waiting recall, so oldest recall is returned" ); |
2026 |
is( $check_recall->patron_id, $patron1->borrowernumber, "No waiting recall, so oldest recall is returned" ); |
2023 |
- |
|
|