From e83585ffa75de38466e336416227ac4b15adb172 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Bégin --- 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 b9d83e9ed9..609547826e 100755 --- a/t/db_dependent/Koha/Item.t +++ b/t/db_dependent/Koha/Item.t @@ -564,7 +564,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; @@ -903,7 +903,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.39.5