Bug 29809: Fix StockRotationStages.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 27 Jan 2022 16:13:32 +0000 (17:13 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 1 Feb 2022 07:55:40 +0000 (21:55 -1000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
t/db_dependent/StockRotationStages.t

index 7c45a6f..ae94473 100755 (executable)
@@ -310,7 +310,7 @@ subtest 'Tests for investigate (singular)' => sub {
                 }
             );
             my $dbitem = Koha::StockRotationItems->find($item);
-            $dbitem->itemnumber->homebranch($code)
+            $dbitem->item->homebranch($code)
                 ->holdingbranch($code)->store;
             $cnt++;
         }
@@ -352,7 +352,7 @@ subtest 'Tests for investigate (singular)' => sub {
                 }
             );
             my $dbitem = Koha::StockRotationItems->find($item);
-            $dbitem->itemnumber->homebranch($code)
+            $dbitem->item->homebranch($code)
                 ->holdingbranch($code)->store;
             $cnt++;
         }