X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=t%2FCache.t;h=d595dc98c91b3b7cab3ab62e1a887673515a5ba9;hb=9e5fe6df1e3e8ca20bf5473a650a5f5f4038ba69;hp=6192d35624dd7dc329ddce9f52fa03c6cd90ee7a;hpb=3d55391eee5b22ee46764b3b1d73b6ef0ad46621;p=koha_fer diff --git a/t/Cache.t b/t/Cache.t index 6192d35624..d595dc98c9 100644 --- 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");