From 92271b4f667c4a8fa39eddd757bde9dbf56e327b Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Tue, 31 Aug 2021 14:00:00 +0200 Subject: [PATCH] Bug 28306: Fix t/db_dependent/Koha/Objects.t It looks like a circular dependency problem where methods are not exported correctly There is at least one circular dependency here: C4::Context -> Koha::Caches -> Koha::Cache -> C4::Context (-> means "uses") The tests pass if C4::Context is loaded early, so the patch does that. Circular dependencies should be fixed ideally, but it is a little more complicated, and I don't have the time right now... --- t/db_dependent/Koha/Objects.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Koha/Objects.t b/t/db_dependent/Koha/Objects.t index 554b631741..dd2e595f67 100755 --- a/t/db_dependent/Koha/Objects.t +++ b/t/db_dependent/Koha/Objects.t @@ -24,6 +24,8 @@ use Test::Exception; use Test::MockModule; use Test::Warn; +use C4::Context; + use Koha::Authority::Types; use Koha::Cities; use Koha::Biblios; -- 2.20.1