]> git.koha-community.org Git - koha.git/commit
Bug 28306: Fix t/db_dependent/Koha/Objects.t
authorJulian Maurice <julian.maurice@biblibre.com>
Tue, 31 Aug 2021 12:00:00 +0000 (14:00 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 9 Sep 2021 08:35:45 +0000 (10:35 +0200)
commit53b435ff0364260daadbd3f264fc2053249da536
treeb0913967f6a122e536d128274b8b5dfa7083f9a9
parent48f1c6db7a73dd04c41fcd8462e6fb91afaeb91d
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...

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/Objects.t