Lines 781-787
subtest 'get_transfers' => sub {
Link Here
|
781 |
|
781 |
|
782 |
$transfer_2->datearrived(\'NOW()')->store; |
782 |
$transfer_2->datearrived(\'NOW()')->store; |
783 |
$transfers = $item->get_transfers(); |
783 |
$transfers = $item->get_transfers(); |
784 |
is($transfers->count, 2, 'Once a transfer is recieved, it no longer appears in the list from ->get_transfers()'); |
784 |
is($transfers->count, 2, 'Once a transfer is received, it no longer appears in the list from ->get_transfers()'); |
785 |
$result_1 = $transfers->next; |
785 |
$result_1 = $transfers->next; |
786 |
$result_2 = $transfers->next; |
786 |
$result_2 = $transfers->next; |
787 |
is( $result_1->branchtransfer_id, $transfer_1->branchtransfer_id, 'Koha::Item->get_transfers returns the other transfers oldest to newest'); |
787 |
is( $result_1->branchtransfer_id, $transfer_1->branchtransfer_id, 'Koha::Item->get_transfers returns the other transfers oldest to newest'); |
788 |
- |
|
|