fix failing tests

This commit is contained in:
Everly Precia Suresh
2023-03-13 02:34:48 +00:00
parent cd7043ac58
commit 434e2849d5
@@ -2111,7 +2111,7 @@ class ProjectsConsoleClientTest extends Scope
$platformFultterWebId = $data['platformFultterWebId'] ?? '';
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id . '/platforms/' . $platformFultterWebId, array_merge([
$response = $this->client->call(Client::METHOD_GET, '/project/' . $id . '/platforms/' . $platformFultterWebId, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), []);
@@ -2274,7 +2274,7 @@ class ProjectsConsoleClientTest extends Scope
$platformFultterWebId = $data['platformFultterWebId'] ?? '';
$response = $this->client->call(Client::METHOD_PUT, '/projects/' . $id . '/platforms/' . $platformFultterWebId, array_merge([
$response = $this->client->call(Client::METHOD_PUT, '/project/' . $id . '/platforms/' . $platformFultterWebId, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
@@ -2455,7 +2455,7 @@ class ProjectsConsoleClientTest extends Scope
$platformFultterWebId = $data['platformFultterWebId'] ?? '';
$response = $this->client->call(Client::METHOD_DELETE, '/projects/' . $id . '/platforms/' . $platformFultterWebId, array_merge([
$response = $this->client->call(Client::METHOD_DELETE, '/project/' . $id . '/platforms/' . $platformFultterWebId, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), []);
@@ -2463,7 +2463,7 @@ class ProjectsConsoleClientTest extends Scope
$this->assertEquals(204, $response['headers']['status-code']);
$this->assertEmpty($response['body']);
$response = $this->client->call(Client::METHOD_GET, '/projects/' . $id . '/platforms/' . $platformFultterWebId, array_merge([
$response = $this->client->call(Client::METHOD_GET, '/project/' . $id . '/platforms/' . $platformFultterWebId, array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), []);