Sync global-autoresponder current state
This commit is contained in:
@@ -7,6 +7,9 @@ test('plugin logger writes exceptions to plugin log file', function (): void {
|
||||
$path = TEST_TMP . '/plugin.log';
|
||||
|
||||
PluginLogger::init($path);
|
||||
assert_true(is_file($path), 'Logger should create plugin.log during init');
|
||||
assert_same('0600', substr(sprintf('%o', fileperms($path)), -4));
|
||||
|
||||
PluginLogger::exception(new RuntimeException('DirectAdmin API command failed'), 'CREATE');
|
||||
|
||||
$log = file_get_contents($path) ?: '';
|
||||
|
||||
Reference in New Issue
Block a user