1
0
Fork 0
mirror of synced 2024-06-14 16:54:52 +12:00

Add Extra Tests

This commit is contained in:
Bradley Schofield 2022-11-01 11:34:56 +00:00
parent 60127cc69d
commit 1eea8c6d8b

View file

@ -483,6 +483,15 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals(200, $response['headers']['status-code']);
$projectId = $response['body']['$id'];
// Check project is back to normal
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $projectId, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => 'console',
], $this->getHeaders()));
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals(525600, $response['body']['sessionDuration']); // 1 Year
return ['projectId' => $projectId];
}