mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2026-10-28 05:05:41 +00:00
[Web][Tests] Add mailbox group, identity sync, auth, Dovecot and SOGo module tests
This commit is contained in:
19 files changed
+1997
No files matched your search
@@ -29,6 +29,17 @@ class ApiResponseTest extends TestCase
|
||||
], $response->messages());
|
||||
}
|
||||
|
||||
public function testWarningsKeepTheCallSuccessful(): void
|
||||
{
|
||||
$response = new ApiResponse();
|
||||
|
||||
$response->warning(['group_template_failed', 'Staff', 'a@example.org'], ['mailbox_group', 'edit', 'group', []]);
|
||||
|
||||
$this->assertSame([
|
||||
['type' => 'warning', 'log' => ['mailbox_group', 'edit', 'group', []], 'msg' => ['group_template_failed', 'Staff', 'a@example.org']],
|
||||
], $response->messages());
|
||||
}
|
||||
|
||||
public function testSecretsAreMaskedInArrayLogParts(): void
|
||||
{
|
||||
$response = new ApiResponse(['password1', 'oauth_client_secret']);
|
||||
|
||||
Reference in new issue
Block a user