Bug 12386 - 'Days in advance' pull down in bootstrap OPAC is huge
[koha_fer] / t / Log.t
diff --git a/t/Log.t b/t/Log.t
old mode 100644 (file)
new mode 100755 (executable)
index 7e38ec8..601b909
--- a/t/Log.t
+++ b/t/Log.t
@@ -1,5 +1,26 @@
-BEGIN { $| = 1; print "1..1\n"; }
-END {print "not ok 1\n" unless $loaded;}
-use C4::Log;
-$loaded = 1;
-print "ok 1\n";
+#!/usr/bin/perl
+#
+# This Koha test module is a stub!  
+# Add more tests here!!!
+
+use strict;
+use warnings;
+
+use Test::More tests => 3;
+use t::lib::Mocks;
+
+BEGIN {
+        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');