From e3cc046cd760e604bd19398918bbdde1cfd6407c Mon Sep 17 00:00:00 2001 From: Hammat Wele Date: Wed, 5 Mar 2025 17:27:28 +0000 Subject: [PATCH] Bug 35434: (follow-up) tidy code --- t/db_dependent/Koha/Item.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t index 76593b147e..246ca2b739 100755 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -563,7 +563,7 @@ subtest 'pickup_locations() tests' => sub { plan tests => 70; - t::lib::Mocks::mock_preference('canreservefromotherbranches', 1); + t::lib::Mocks::mock_preference( 'canreservefromotherbranches', 1 ); $schema->storage->txn_begin; my $dbh = C4::Context->dbh; @@ -902,7 +902,7 @@ subtest 'pickup_locations() tests' => sub { grep { $pickup_location->branchcode eq $_ } @branchcodes } $item4->pickup_locations( { patron => $patron5 } )->as_list; ok( - scalar(@pickup_locations) == 1 && @pickup_locations[0] eq $library4->branchcode, + scalar(@pickup_locations) == 1 && $pickup_locations[0] eq $library4->branchcode, 'There should be only one branch in the pickup locations, the connected branch' ); -- 2.34.1