From 3958935312090bdaba656448e78e0fe562a81a93 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 To test: prove -v t/db_dependent/Koha/Biblio.t it succeeds (maybe) add a library that is not a pickup_location prove the test it fails apply the patch prove! it passes! https://bugs.koha-community.org/show_bug.cgi?id=25540 --- 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