Fix failing tests

This commit is contained in:
Matej Bačo
2026-04-08 10:52:20 +02:00
parent b8d65326e6
commit f880b6e8c3
3 changed files with 13 additions and 3 deletions
@@ -3161,7 +3161,7 @@ class ProjectsConsoleClientTest extends Scope
$response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-response-format' => '1.9.0',
'x-appwrite-response-format' => '1.8.0',
], $this->getHeaders()), [
'name' => 'Key Custom',
'scopes' => ['teams.read', 'teams.write'],
@@ -3247,7 +3247,7 @@ class ProjectsConsoleClientTest extends Scope
$response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-response-format' => '1.9.0',
'x-appwrite-response-format' => '1.8.0',
], $this->getHeaders()), [
'name' => 'Key Test 2',
'scopes' => ['users.read'],
@@ -3623,7 +3623,7 @@ class ProjectsConsoleClientTest extends Scope
$response = $this->client->call(Client::METHOD_POST, '/projects/' . $id . '/keys', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-response-format' => '1.9.0',
'x-appwrite-response-format' => '1.8.0',
], $this->getHeaders()), [
'name' => 'Key For Deletion',
'scopes' => ['teams.read', 'teams.write'],