Lines 594-605
subtest 'checkout() tests' => sub {
Link Here
|
594 |
item_id => $item->itemnumber, |
594 |
item_id => $item->itemnumber, |
595 |
issue_id => $checkout->issue_id, |
595 |
issue_id => $checkout->issue_id, |
596 |
type => 'OVERDUE', |
596 |
type => 'OVERDUE', |
|
|
597 |
status => 'UNRETURNED' |
597 |
}); |
598 |
}); |
598 |
|
599 |
|
599 |
my $line_checkout = $line->checkout; |
600 |
my $line_checkout = $line->checkout; |
600 |
is( ref($line_checkout), 'Koha::Checkout', 'Result type is correct' ); |
601 |
is( ref($line_checkout), 'Koha::Checkout', 'Result type is correct' ); |
601 |
is( $line_checkout->issue_id, $checkout->issue_id, 'Koha::Account::Line->checkout should return the correct checkout'); |
602 |
is( $line_checkout->issue_id, $checkout->issue_id, 'Koha::Account::Line->checkout should return the correct checkout'); |
602 |
|
603 |
|
|
|
604 |
# Prevent re-calculation of fines at check-in for the test; Since bug 8338 the recalculation would result in a '0' |
605 |
# fine which would subsequently be removed by _FixOverduesOnReturn |
606 |
t::lib::Mocks::mock_preference( 'finesMode', 'off' ); |
607 |
|
603 |
my ( $returned, undef, $old_checkout) = C4::Circulation::AddReturn( $item->barcode, $library->branchcode ); |
608 |
my ( $returned, undef, $old_checkout) = C4::Circulation::AddReturn( $item->barcode, $library->branchcode ); |
604 |
is( $returned, 1, 'The item should have been returned' ); |
609 |
is( $returned, 1, 'The item should have been returned' ); |
605 |
|
610 |
|
606 |
- |
|
|