|
Lines 110-116
subtest 'item' => sub {
Link Here
|
| 110 |
'Koha::Checkout->item should return the correct item' ); |
110 |
'Koha::Checkout->item should return the correct item' ); |
| 111 |
}; |
111 |
}; |
| 112 |
|
112 |
|
| 113 |
subtest 'accountlines' => sub { |
113 |
subtest 'account_lines' => sub { |
| 114 |
plan tests => 3; |
114 |
plan tests => 3; |
| 115 |
|
115 |
|
| 116 |
my $accountline = Koha::Account::Line->new( |
116 |
my $accountline = Koha::Account::Line->new( |
|
Lines 128-134
subtest 'accountlines' => sub {
Link Here
|
| 128 |
} |
128 |
} |
| 129 |
)->store(); |
129 |
)->store(); |
| 130 |
|
130 |
|
| 131 |
my $accountlines = $retrieved_checkout_1->accountlines; |
131 |
my $accountlines = $retrieved_checkout_1->account_lines; |
| 132 |
is( ref($accountlines), 'Koha::Account::Lines', |
132 |
is( ref($accountlines), 'Koha::Account::Lines', |
| 133 |
'Koha::Checkout->accountlines should return a Koha::Item' ); |
133 |
'Koha::Checkout->accountlines should return a Koha::Item' ); |
| 134 |
|
134 |
|
| 135 |
- |
|
|