diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-09-04 14:22:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-04 14:22:06 +0200 |
commit | 4fd3240b5f0d2f8a42675fa499c06a7f35b726fe (patch) | |
tree | 9d640ebb8f88780acfdd449f121aff1f93c87252 /tests/lib/TestCase.php | |
parent | 30ca3b70edea01dea092e495db1acf85183bfb80 (diff) | |
parent | 1ebf91ec16c00ea0696defe70d29884e2819237c (diff) | |
download | nextcloud-server-4fd3240b5f0d2f8a42675fa499c06a7f35b726fe.tar.gz nextcloud-server-4fd3240b5f0d2f8a42675fa499c06a7f35b726fe.zip |
Merge pull request #6254 from nextcloud/async-bus-split
Allow configuring different command bus backends
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(); |