From 6c5f7d586e6bad7671587c61dbe3a260d098b57f Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 13 Oct 2016 13:14:05 +0200 Subject: [PATCH] Fix migration tests Signed-off-by: Roeland Jago Douma --- apps/encryption/tests/MigrationTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/encryption/tests/MigrationTest.php b/apps/encryption/tests/MigrationTest.php index 868a1ad3922..595d7f12067 100644 --- a/apps/encryption/tests/MigrationTest.php +++ b/apps/encryption/tests/MigrationTest.php @@ -343,6 +343,10 @@ class MigrationTest extends \Test\TestCase { unset($cache['files_encryption']); $this->invokePrivate(\OC::$server->getAppConfig(), 'cache', [$cache]); + $cache = $this->invokePrivate($config, 'userCache'); + unset($cache[self::TEST_ENCRYPTION_MIGRATION_USER1]); + $this->invokePrivate(\OC::$server->getAppConfig(), 'userCache', [$cache]); + // delete default values set by the encryption app during initialization /** @var \OCP\IDBConnection $connection */