Merge pull request #3822 from owncloud/graceful_teardown_of_cache

graceful teardown of cache
This commit is contained in:
Thomas Müller 2013-06-24 05:46:30 -07:00
commit 993a1f1976
1 changed files with 3 additions and 1 deletions

View File

@ -348,8 +348,10 @@ class Cache extends \PHPUnit_Framework_TestCase {
} }
public function tearDown() { public function tearDown() {
if ($this->cache) {
$this->cache->clear(); $this->cache->clear();
} }
}
public function setUp() { public function setUp() {
$this->storage = new \OC\Files\Storage\Temporary(array()); $this->storage = new \OC\Files\Storage\Temporary(array());