Bug 20912: (QA follow-up) Move Fees to Charges::
[koha.git] / t / 00-load.t
index ab4b08f..c45f21a 100644 (file)
@@ -23,7 +23,6 @@ use Test::More;
 use File::Spec;
 use File::Find;
 use English qw( -no_match_vars );
-use t::lib::Mocks;
 
 =head1 DESCRIPTION
 
@@ -31,8 +30,6 @@ use t::lib::Mocks;
 
 =cut
 
-my $context_module = t::lib::Mocks::mock_dbh;
-
 # Loop through the C4:: modules
 my $lib = File::Spec->rel2abs('C4');
 find({
@@ -78,17 +75,19 @@ sub is_testable {
     my ($module_name) = @_;
     my @needed_module_names;
     my $return_value = 1;
-    if ( $module_name =~ /Koha::NorwegianPatronDB/xsm ) {
-        @needed_module_names =
-          ( 'SOAP::Lite', 'Crypt::GCrypt', 'Digest::SHA', 'Convert::BaseN' );
-    }
-    elsif ( $module_name =~ /Koha::ElasticSearch::Indexer/xsm ) {
+    if ( $module_name =~ /Koha::SearchEngine::Elasticsearch::Indexer/xsm ) {
         @needed_module_names =
           ( 'Catmandu::Importer::MARC', 'Catmandu::Store::ElasticSearch' );
     }
     elsif ( $module_name =~ /Koha::SearchEngine::Elasticsearch::Search/xsm ) {
         @needed_module_names = ( 'Catmandu::Store::ElasticSearch' );
     }
+    elsif ( $module_name =~ /Koha::SearchEngine::Elasticsearch/xsm ) {
+        @needed_module_names = ( 'Search::Elasticsearch' );
+    }
+    elsif ( $module_name =~ /^Koha::ExternalContent/xsm ) {
+        @needed_module_names = ( 'WebService::ILS' );
+    }
     foreach my $current_name (@needed_module_names) {
         my $relative_pathname = $current_name;
         $relative_pathname =~ s/::/\//gxsm;
@@ -106,4 +105,3 @@ sub is_testable {
 
 done_testing();
 
-1;