From 39e7782d94e4362b40edee72b4e5ac15f52c0c92 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 11 Nov 2020 15:43:57 +0000 Subject: [PATCH] Bug 26963: [GOLF] Update mocked return of pickup_locations Signed-off-by: Martin Renvoize --- t/db_dependent/Template/Plugin/Branches.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Template/Plugin/Branches.t b/t/db_dependent/Template/Plugin/Branches.t index f6141d9345..4c149dfc69 100755 --- a/t/db_dependent/Template/Plugin/Branches.t +++ b/t/db_dependent/Template/Plugin/Branches.t @@ -137,7 +137,8 @@ subtest 'pickup_locations() tests' => sub { $item_class->mock( 'pickup_locations', sub { - return [$library_1]; + return Koha::Libraries->search( + { branchcode => $library_1->branchcode } ); } ); -- 2.20.1