From 9e5a3086554b6c325ad15012b7ae54daa20e9a10 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 15 Jan 2021 14:00:55 +0000 Subject: [PATCH] Bug 22284: (QA follow-up) Fix test failures Only libraries that are a pickup location will be returned as a pickup location --- t/db_dependent/Koha/Biblio.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Biblio.t b/t/db_dependent/Koha/Biblio.t index 485b31a14e..cbcf3b5827 100644 --- a/t/db_dependent/Koha/Biblio.t +++ b/t/db_dependent/Koha/Biblio.t @@ -189,7 +189,7 @@ subtest 'pickup_locations' => sub { $schema->storage->txn_begin; - my $nb_libraries = Koha::Libraries->count; + my $nb_libraries = Koha::Libraries->search({ pickup_location => 1 })->count; Koha::CirculationRules->search->delete; Koha::CirculationRules->set_rules( { -- 2.11.0