Bug 8841 Duedate should be set to end of expiry day
[koha.git] / t / Cache.t
index 6192d35..d595dc9 100644 (file)
--- a/t/Cache.t
+++ b/t/Cache.t
@@ -13,10 +13,10 @@ BEGIN {
 }
 
 SKIP: {
-    skip "Memcached not enabled", 7 unless Koha::Cache->is_cache_active();
-
     my $cache = Koha::Cache->new ();
 
+    skip "Cache not enabled", 7 unless (Koha::Cache->is_cache_active() && defined $cache);
+
     # test fetching an item that isnt in the cache
     is( $cache->get_from_cache("not in here"), undef, "fetching item NOT in cache");