summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-06-24 05:46:30 -0700
committerThomas Müller <thomas.mueller@tmit.eu>2013-06-24 05:46:30 -0700
commit993a1f1976ccbf7e1655659840b11fa3da2797db (patch)
treea855e0dda3b05414389c6e1adaf3b85f5fde3abe
parent073464af0bdb21703c01439edc9949519450328f (diff)
parent4ecca9e97b85ba8fb45c87dcc1885751049403fd (diff)
downloadnextcloud-server-993a1f1976ccbf7e1655659840b11fa3da2797db.tar.gz
nextcloud-server-993a1f1976ccbf7e1655659840b11fa3da2797db.zip
Merge pull request #3822 from owncloud/graceful_teardown_of_cache
graceful teardown of cache
-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() {