Reverted some added changes

This commit is contained in:
VijaykumarPujar-tech
2025-12-09 22:40:51 +05:30
parent 0f84f21bb4
commit 2fa95b52a0
@@ -565,9 +565,7 @@ class ProjectsConsoleClientTest extends Scope
{
$id = $data['projectId'];
/**
* Test for SUCCESS: Valid Credentials
*/
/**Test for SUCCESS: Valid Credentials*/
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $id . '/smtp', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
@@ -607,8 +605,7 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals('password', $response['body']['smtpPassword']);
$this->assertEquals('', $response['body']['smtpSecure']);
/** * Test for FAILURE: Missing or Invalid Credentials
*/
/** Test for Missing or Invalid Credentials*/
$response = $this->client->call(Client::METHOD_PATCH, '/projects/' . $id . '/smtp', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
@@ -626,16 +623,6 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals(Exception::PROJECT_SMTP_CONFIG_INVALID, $response['body']['type']);
$this->assertStringContainsStringIgnoringCase('SMTP authentication failed.', $response['body']['message']);
/** * Test Reading Project to ensure settings were NOT saved after failure
*/
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()));
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals('mailer@appwrite.io', $response['body']['smtpSenderEmail']);
return $data;
}