@@ -, +, @@ --- t/db_dependent/Template/Plugin/Branches.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/t/db_dependent/Template/Plugin/Branches.t +++ a/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 } ); } ); --