Sync global-autoresponder current state
This commit is contained in:
@@ -12,7 +12,6 @@ test('directadmin vacation api builds scoped payload for one mailbox', function
|
||||
$api = new DirectAdminVacationApi('/usr/local/directadmin/directadmin');
|
||||
$payload = $api->buildSavePayload('info@example.com', [
|
||||
'subject_prefix' => 'Urlop',
|
||||
'reply_every_message' => false,
|
||||
'repeat_minutes' => 1,
|
||||
'body' => 'Body',
|
||||
'start_value' => '2026-06-10T00:00',
|
||||
@@ -31,20 +30,6 @@ test('directadmin vacation api builds scoped payload for one mailbox', function
|
||||
assert_same('23:59', $payload['endtime']);
|
||||
});
|
||||
|
||||
test('directadmin vacation api maps every-message legacy rules to one minute minimum', function (): void {
|
||||
$api = new DirectAdminVacationApi('/usr/local/directadmin/directadmin');
|
||||
$payload = $api->buildSavePayload('info@example.com', [
|
||||
'subject_prefix' => 'Urlop',
|
||||
'reply_every_message' => true,
|
||||
'repeat_minutes' => 0,
|
||||
'body' => 'Body',
|
||||
'start_value' => '2026-06-10T00:00',
|
||||
'end_value' => '2026-06-24T23:59',
|
||||
]);
|
||||
|
||||
assert_same('1m', $payload['reply_once_time']);
|
||||
});
|
||||
|
||||
test('directadmin vacation api reports http error response bodies', function (): void {
|
||||
$runner = static function (array $args, string $stdin): string {
|
||||
if ($args[0] === '/bin/echo') {
|
||||
@@ -58,7 +43,6 @@ test('directadmin vacation api reports http error response bodies', function ():
|
||||
try {
|
||||
$api->saveVacation('alice', 'info@example.com', [
|
||||
'subject_prefix' => 'Urlop',
|
||||
'reply_every_message' => false,
|
||||
'repeat_minutes' => 1440,
|
||||
'body' => 'Body',
|
||||
'start_value' => '2026-06-10|morning',
|
||||
@@ -85,7 +69,6 @@ test('directadmin vacation api reports legacy api error payloads', function ():
|
||||
try {
|
||||
$api->saveVacation('alice', 'info@example.com', [
|
||||
'subject_prefix' => 'Urlop',
|
||||
'reply_every_message' => false,
|
||||
'repeat_minutes' => 1440,
|
||||
'body' => 'Body',
|
||||
'start_value' => '2026-06-10|morning',
|
||||
|
||||
Reference in New Issue
Block a user