@@ -, +, @@ --- t/db_dependent/Koha/Account/Lines.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/t/db_dependent/Koha/Account/Lines.t +++ a/t/db_dependent/Koha/Account/Lines.t @@ -274,7 +274,7 @@ subtest 'apply() tests' => sub { subtest 'issue() tests' => sub { - plan tests => 5; + plan tests => 6; $schema->storage->txn_begin; @@ -308,5 +308,8 @@ subtest 'issue() tests' => sub { is( ref($old_line_issue), 'Koha::Old::Checkout', 'Result type is correct' ); is( $old_line_issue->issue_id, $old_checkout->issue_id, 'Koha::Account::Line->issue should return the correct old_issue' ); + $line->issue_id(undef)->store; + is( $line->issue, undef, 'Koha::Account::Line->issue should return undef if no issue linked' ); + $schema->storage->txn_rollback; }; --