Bug 18287 - Fix t/Koha.t having a Test::DBIx::Class cache issue

REPLICATE ISSUE:

perl t/Koha.t -> fails

AFTER THIS PATCH AND DEPENDENCIES:

perl t/Koha.t -> OK

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Olli-Antti Kivilahti 2017-03-16 21:17:24 +02:00 committed by Jonathan Druart
parent 92c0ea7d76
commit b237b4f347
1 changed files with 1 additions and 0 deletions

View File

@ -47,6 +47,7 @@ sub fixtures {
my $db = Test::MockModule->new('Koha::Database');
$db->mock( _new_schema => sub { return Schema(); } );
Koha::Database::flush_schema_cache();
my $libraries = [
['XXX_test', 'my branchname XXX'],