Bug 24857: API spec
[koha-ffzg.git] / t / SocialData.t
old mode 100644 (file)
new mode 100755 (executable)
index eec1e5c..97d6575
@@ -31,7 +31,7 @@ BEGIN {
 }
 
 BEGIN {
-    use_ok('C4::SocialData');
+    use_ok('C4::SocialData', qw( get_data get_report ));
 }
 
 use Test::DBIx::Class;
@@ -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;