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:
parent
48f1c6db7a
commit
53b435ff03
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue