Bug 22435: (QA follow-up) More test updates

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Martin Renvoize 2021-06-21 18:32:50 +01:00 committed by Jonathan Druart
parent 7293115c56
commit 36140f37e5
2 changed files with 5 additions and 5 deletions

View file

@ -950,7 +950,7 @@ subtest "Koha::Account::non_issues_charges tests" => sub {
{
credit_id => $credit->id,
debit_id => $debit->id,
type => 'Payment',
type => 'APPLY',
amount => 0
}
)->store();
@ -983,7 +983,7 @@ subtest "Koha::Account::non_issues_charges tests" => sub {
{
credit_id => $credit->id,
debit_id => $debit->id,
type => 'Payment',
type => 'APPLY',
amount => 0
}
)->store();
@ -1017,7 +1017,7 @@ subtest "Koha::Account::non_issues_charges tests" => sub {
{
credit_id => $credit->id,
debit_id => $debit->id,
type => 'Payment',
type => 'APPLY',
amount => 0
}
)->store();
@ -1084,7 +1084,7 @@ subtest "Koha::Account::Offset credit & debit tests" => sub {
{
credit_id => undef,
debit_id => undef,
type => 'Payment',
type => 'CREATE',
amount => 0,
}
)->store();

View file

@ -3411,7 +3411,7 @@ subtest '_FixOverduesOnReturn' => sub {
C4::Circulation::_FixOverduesOnReturn( $patron->{borrowernumber}, $item->itemnumber, 1, 'RETURNED' );
$accountline->_result()->discard_changes();
$offset = Koha::Account::Offsets->search({ debit_id => $accountline->id, type => 'Forgiven' })->next();
$offset = Koha::Account::Offsets->search({ debit_id => $accountline->id, type => 'CREATE' })->next();
is( $offset, undef, "No offset created when trying to forgive fine with no outstanding balance" );
isnt( $accountline->status, 'UNRETURNED', 'Open fine ( account type OVERDUE ) has been closed out ( status not UNRETURNED )');
is( $accountline->status, 'RETURNED', 'Passed status has been used to set as RETURNED )');