PR review changes

This commit is contained in:
Matej Bačo
2025-08-26 15:44:15 +02:00
parent a413235f8d
commit 2ce0f370dc
2 changed files with 14 additions and 1 deletions
@@ -105,6 +105,6 @@ class Base extends Queries
public function isSelectQueryAllowed(): bool
{
return true;
return false;
}
}
+13
View File
@@ -445,6 +445,19 @@ trait UsersBase
$user1 = $response['body']['users'][1];
// This test ensures that by default, endpoints dont support select queries
// If we add select query to this endpoint, you will need to remove this test
// Please make sure to add it to another place, unless all endpoints support select queries
$response = $this->client->call(Client::METHOD_GET, '/users', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [
'queries' => [
Query::select(['name'])->toString()
]
]);
$this->assertEquals($response['headers']['status-code'], 400);
$response = $this->client->call(Client::METHOD_GET, '/users', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],