summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-24 12:59:56 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-06-24 12:59:56 +0200
commit4ecca9e97b85ba8fb45c87dcc1885751049403fd (patch)
treea855e0dda3b05414389c6e1adaf3b85f5fde3abe /tests
parent073464af0bdb21703c01439edc9949519450328f (diff)
downloadnextcloud-server-4ecca9e97b85ba8fb45c87dcc1885751049403fd.tar.gz
nextcloud-server-4ecca9e97b85ba8fb45c87dcc1885751049403fd.zip
graceful teardown of cache
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/files/cache/cache.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/lib/files/cache/cache.php b/tests/lib/files/cache/cache.php
index f272655925b..527c1d1b2a1 100644
--- a/tests/lib/files/cache/cache.php
+++ b/tests/lib/files/cache/cache.php
@@ -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() {