diff options
author | Robin Appelman <robin@icewind.nl> | 2017-08-24 16:06:37 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-08-24 16:06:37 +0200 |
commit | 9731350acef75931ccbeafa054b40afe8189653f (patch) | |
tree | 3da1e286c8ab55882daa05223f9987fae86c8c50 /tests/lib/TestCase.php | |
parent | ae0789ef433adad73bdf77c57b8ead5616ed99fe (diff) | |
download | nextcloud-server-9731350acef75931ccbeafa054b40afe8189653f.tar.gz nextcloud-server-9731350acef75931ccbeafa054b40afe8189653f.zip |
split async test bus for easier subclassing
Diffstat (limited to 'tests/lib/TestCase.php')
-rw-r--r-- | tests/lib/TestCase.php | 4 |
1 files changed, 3 insertions, 1 deletions
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(); |