From 9731350acef75931ccbeafa054b40afe8189653f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 24 Aug 2017 16:06:37 +0200 Subject: split async test bus for easier subclassing --- tests/lib/TestCase.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tests/lib/TestCase.php') diff --git a/tests/lib/TestCase.php b/tests/lib/TestCase.php index c3aa2c73c9e..818b3454c3a 100644 --- a/tests/lib/TestCase.php +++ b/tests/lib/TestCase.php @@ -190,7 +190,9 @@ abstract class TestCase extends \PHPUnit_Framework_TestCase { self::assertEquals([], $errors, "There have been xml parsing errors"); } - \OC\Files\Cache\Storage::getGlobalCache()->clearCache(); + if ($this->IsDatabaseAccessAllowed()) { + \OC\Files\Cache\Storage::getGlobalCache()->clearCache(); + } // tearDown the traits $traits = $this->getTestTraits(); -- cgit v1.2.3