Bug 8454 - Holds to Pull : Show pull list on load. Otherwise, it looks like the pull...
[koha.git] / t / 00-load.t
index fa8181f..da9008d 100644 (file)
@@ -32,4 +32,23 @@ find({
         use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
     },
 }, $lib);
+
+$lib = File::Spec->rel2abs('Koha');
+find(
+    {
+        bydepth  => 1,
+        no_chdir => 1,
+        wanted   => sub {
+            my $m = $_;
+            return unless $m =~ s/[.]pm$//;
+            $m =~ s{^.*/Koha/}{Koha/};
+            $m =~ s{/}{::}g;
+            return if $m =~ /Koha::SearchEngine::/; # Koha::SearchEngine::* are experimental
+            use_ok($m) || BAIL_OUT("***** PROBLEMS LOADING FILE '$m'");
+        },
+    },
+    $lib
+);
+
+
 done_testing();