diff --git a/tests/lib/AppConfigIntegrationTest.php b/tests/lib/AppConfigIntegrationTest.php index b9b84065d22..3fc5c39fb6e 100644 --- a/tests/lib/AppConfigIntegrationTest.php +++ b/tests/lib/AppConfigIntegrationTest.php @@ -142,8 +142,12 @@ class AppConfigIntegrationTest extends TestCase { $type = $row[2] ?? IAppConfig::VALUE_MIXED; if (($row[4] ?? false) === true) { $type |= IAppConfig::VALUE_SENSITIVE; - $value = self::invokePrivate(AppConfig::class, 'ENCRYPTION_PREFIX') . $this->crypto->encrypt($value); - self::$baseStruct[$appId][$key]['encrypted'] = $value; + if (!isset(self::$baseStruct[$appId][$key]['encrypted'])) { + $value = self::invokePrivate(AppConfig::class, 'ENCRYPTION_PREFIX') . $this->crypto->encrypt($value); + self::$baseStruct[$appId][$key]['encrypted'] = $value; + } else { + $value = self::$baseStruct[$appId][$key]['encrypted']; + } } $sql->setParameters(