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>
This commit is contained in:
Julian Maurice 2021-08-31 14:00:00 +02:00 committed by Jonathan Druart
parent 48f1c6db7a
commit 53b435ff03

View file

@ -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;