Bug 22563: (follow-up) Fix tests in Koha/Account.t
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 Jul 2019 17:55:34 +0000 (14:55 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Jul 2019 10:28:04 +0000 (11:28 +0100)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/Koha/Account.t

index 735a7c9..e6e0f67 100755 (executable)
@@ -622,7 +622,7 @@ subtest 'pay() handles lost items when paying a specific lost fee' => sub {
             borrowernumber => $patron->id,
             itemnumber     => $item->id,
             date           => \'NOW()',
-            accounttype    => 'L',
+            accounttype    => 'LOST',
             interface      => 'cli',
             amount => '1',
             amountoutstanding => '1',
@@ -695,7 +695,7 @@ subtest 'pay() handles lost items when paying by amount ( not specifying the los
             borrowernumber => $patron->id,
             itemnumber     => $item->id,
             date           => \'NOW()',
-            accounttype    => 'L',
+            accounttype    => 'LOST',
             interface      => 'cli',
             amount => '1',
             amountoutstanding => '1',
@@ -766,7 +766,7 @@ subtest 'Koha::Account::Line::apply() handles lost items' => sub {
             borrowernumber    => $patron->id,
             itemnumber        => $item->id,
             date              => \'NOW()',
-            accounttype       => 'L',
+            accounttype       => 'LOST',
             interface         => 'cli',
             amount            => '1',
             amountoutstanding => '1',