Lines 57-64
AddIssue( $borrower, '0101', DateTime->now->subtract( days => 1 ) );
Link Here
|
57 |
AddIssue( $borrower, '0102', DateTime->now->subtract( days => 5 ) ); |
57 |
AddIssue( $borrower, '0102', DateTime->now->subtract( days => 5 ) ); |
58 |
AddIssue( $borrower, '0103' ); |
58 |
AddIssue( $borrower, '0103' ); |
59 |
|
59 |
|
60 |
my $overdues = C4::Members::GetOverdues( $borrowernumber ); |
60 |
my $overdues = C4::Members::GetOverduesForPatron( $borrowernumber ); |
61 |
is( @$overdues, 2, 'GetOverdues returns the correct number of elements' ); |
61 |
is( @$overdues, 2, 'GetOverduesForPatron returns the correct number of elements' ); |
62 |
is( $overdues->[0]->{itemnumber}, $itemnumber1, 'First overdue is correct' ); |
62 |
is( $overdues->[0]->{itemnumber}, $itemnumber1, 'First overdue is correct' ); |
63 |
is( $overdues->[1]->{itemnumber}, $itemnumber2, 'Second overdue is correct' ); |
63 |
is( $overdues->[1]->{itemnumber}, $itemnumber2, 'Second overdue is correct' ); |
64 |
|
64 |
|
65 |
- |
|
|