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 */