Bug 29021: (QA follow-up) Remove useless warnings
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 30 Jan 2023 15:01:41 +0000 (12:01 -0300)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 1 Feb 2023 19:09:19 +0000 (19:09 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit bcaf68b51fe73dfe0b38896c0f241725edbcb01b)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
(cherry picked from commit 6a4f0e3c591b43bc9e2ed5b12cf620413913ec9f)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/Koha/Account/Line.t

index ccf4b21..2053982 100755 (executable)
@@ -501,9 +501,9 @@ subtest 'Renewal related tests' => sub {
     $schema->storage->txn_begin;
 
     my $patron = $builder->build_object( { class => 'Koha::Patrons' } );
-    my $staff = $builder->build_object( { class => 'Koha::Patrons' } );
-    my $item = $builder->build_object({ class => 'Koha::Items' });
-    my $issue = $builder->build_object(
+    my $staff  = $builder->build_object( { class => 'Koha::Patrons' } );
+    my $item   = $builder->build_sample_item;
+    my $issue  = $builder->build_object(
         {
             class => 'Koha::Checkouts',
             value => {
@@ -522,6 +522,7 @@ subtest 'Renewal related tests' => sub {
         debit_type_code   => "OVERDUE",
         status            => "UNRETURNED",
         amountoutstanding => 0,
+        amount            => 0,
         interface         => 'commandline',
     })->store;