Added test
This commit is contained in:
parent
64138d6ccf
commit
171d46b091
1 changed files with 19 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue