chore: log full source hostname

This commit is contained in:
Marek Miklewicz
2026-06-30 21:35:12 +02:00
parent b6a9180eae
commit 311190a7cd
8 changed files with 19 additions and 6 deletions
+8
View File
@@ -84,6 +84,14 @@ test('settings do not expose deprecated mail login method switch', function ():
assert_not_contains('MAIL_LOGIN_METHOD', $config);
});
test('settings do not expose cosmetic target name setting', function (): void {
$defaults = Settings::defaults();
$config = file_get_contents(PLUGIN_ROOT . '/plugin-settings.conf') ?: '';
assert_false(array_key_exists('MAIL_LOGIN_TARGET_NAME', $defaults));
assert_not_contains('MAIL_LOGIN_TARGET_NAME', $config);
});
test('settings expose disabled plugin flag through access guard', function (): void {
$settings = Settings::fromArray(['DEFAULT_ENABLE' => 'false']);
assert_false($settings->defaultEnable());