]> source.dussan.org Git - nextcloud-server.git/commitdiff
graceful teardown of cache
authorJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 24 Jun 2013 10:59:56 +0000 (12:59 +0200)
committerJörn Friedrich Dreyer <jfd@butonic.de>
Mon, 24 Jun 2013 10:59:56 +0000 (12:59 +0200)
tests/lib/files/cache/cache.php

index f272655925b6633fdf7a4226f9f70140e8001c63..527c1d1b2a13c84092ab68175393dedb7b5f4698 100644 (file)
@@ -348,7 +348,9 @@ class Cache extends \PHPUnit_Framework_TestCase {
        }
 
        public function tearDown() {
-               $this->cache->clear();
+               if ($this->cache) {
+                       $this->cache->clear();
+               }
        }
 
        public function setUp() {