Bug 28278: Add unit test for Koha::Config::read_from_file
[srvgit] / t / SocialData.t
old mode 100644 (file)
new mode 100755 (executable)
index eec1e5c..df14a50
@@ -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');
@@ -71,4 +72,3 @@ is( $report->{'without'}->[0]->{'original'},
 is( $report->{'without'}->[0]->{'isbn'}, '9780596526740',
     'testing get_report' );
 
-1;