if ($this->hidePasswordOutput &&
$key == 'password' &&
- !empty($value) && is_string($value)) {
+ is_string($value)) {
$this->config[$cat][$key] = new HiddenString((string) $value);
} else {
$this->config[$cat][$key] = $value;
use Friendica\Core\Config\Cache\ConfigCache;
use Friendica\Test\MockedTest;
+use ParagonIE\HiddenString\HiddenString;
class ConfigCacheTest extends MockedTest
{
]
]);
- $this->assertEmpty($configCache->get('database', 'password'));
+ $this->assertNotEmpty($configCache->get('database', 'password'));
+ $this->assertInstanceOf(HiddenString::class, $configCache->get('database', 'password'));
$this->assertEmpty($configCache->get('database', 'username'));
}