Bug 10851: add additional "missing" statuses for serials issues
[koha_fer] / t / Log.t
diff --git a/t/Log.t b/t/Log.t
index 823a14e..601b909 100755 (executable)
--- a/t/Log.t
+++ b/t/Log.t
@@ -6,12 +6,21 @@
 use strict;
 use warnings;
 
-use Test::More tests => 1;
+use Test::More tests => 3;
+use t::lib::Mocks;
 
 BEGIN {
-       use FindBin;
-       use lib $FindBin::Bin;
-       use override_context_prefs;
         use_ok('C4::Log');
 }
 
+t::lib::Mocks::mock_preference('BorrowersLog', 1);
+t::lib::Mocks::mock_preference('CataloguingLog', 1);
+t::lib::Mocks::mock_preference('IssueLog', 1);
+t::lib::Mocks::mock_preference('ReturnLog', 1);
+t::lib::Mocks::mock_preference('SubscriptionLog', 1);
+t::lib::Mocks::mock_preference('LetterLog', 1);
+t::lib::Mocks::mock_preference('FinesLog', 1);
+
+ok( my $hash=GetLogStatus(),"Testing GetLogStatus");
+
+ok( $hash->{BorrowersLog}, 'Testing hash is non empty');