Bug 18289 - Fix t/Prices.t having a Test::DBIx::Class cache issue
authorOlli-Antti Kivilahti <olli-antti.kivilahti@jns.fi>
Thu, 16 Mar 2017 19:28:08 +0000 (21:28 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 5 Jun 2017 20:52:49 +0000 (17:52 -0300)
REPLICATE ISSUE:

perl t/Prices.t -> fails

AFTER THIS PATCH AND DEPENDENCIES:

perl t/Prices.t -> OK

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

index c65f203..46e2a3a 100644 (file)
@@ -24,6 +24,7 @@ use Test::DBIx::Class;
 
 my $db = Test::MockModule->new('Koha::Database');
 $db->mock( _new_schema => sub { return Schema(); } );
+Koha::Database::flush_schema_cache();
 
 fixtures_ok [
     Currency => [