From: Olli-Antti Kivilahti Date: Thu, 16 Mar 2017 19:26:36 +0000 (+0200) Subject: Bug 18288 - Fix t/SocialData.t having a Test::DBIx::Class cache issue X-Git-Tag: v17.11.00~1041 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=5abcef4f54269a0c39eb6852795d4b6350ad30f1;p=koha-ffzg.git Bug 18288 - Fix t/SocialData.t having a Test::DBIx::Class cache issue REPLICATE ISSUE: perl t/SocialData.t -> fails AFTER THIS PATCH AND DEPENDENCIES: perl t/SocialData.t -> OK Signed-off-by: Jonathan Druart --- diff --git a/t/SocialData.t b/t/SocialData.t index eec1e5cf07..cf1d5ff65a 100644 --- a/t/SocialData.t +++ b/t/SocialData.t @@ -56,6 +56,7 @@ fixtures_ok [ my $db = Test::MockModule->new('Koha::Database'); $db->mock( _new_schema => sub { return Schema(); } ); +Koha::Database::flush_schema_cache(); my $data = C4::SocialData::get_data(); is( $data, undef, 'get_data should return undef if no param given');