1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

Added test

This commit is contained in:
Eldad Fux 2023-12-19 16:19:57 +01:00
parent 64138d6ccf
commit 171d46b091

View file

@ -577,6 +577,25 @@ class ProjectsConsoleClientTest extends Scope
return $data;
}
/**
* @group smtpAndTemplates
* @depends testUpdateProjectSMTP
*/
public function testCreateProjectSMTPTests($data): array
{
$id = $data['projectId'];
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $id . '/smtp/tests', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'email' => 'mailer@appwrite.io',
]);
$this->assertEquals(204, $response['headers']['status-code']);
return $data;
}
/**
* @group smtpAndTemplates
* @depends testUpdateProjectSMTP