Remove test for multiple select queries in UsersBase trait

Co-authored-by: jakeb994 <jakeb994@gmail.com>
This commit is contained in:
Cursor Agent
2025-08-12 13:31:22 +00:00
co-authored by jakeb994
parent 1c0b5e9b6d
commit 326fe53ca8
-25
View File
@@ -2000,31 +2000,6 @@ trait UsersBase
$this->assertArrayHasKey('name', $user);
$this->assertArrayNotHasKey('email', $user);
/**
* Test Query::select with multiple select queries (should be consolidated)
*/
$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(['$id', 'name'])->toString(),
Query::select(['email', 'status'])->toString()
]
]);
$this->assertEquals($response['headers']['status-code'], 200);
$this->assertNotEmpty($response['body']);
$this->assertNotEmpty($response['body']['users']);
$user = $response['body']['users'][0];
// All attributes from both select queries should be present
$this->assertArrayHasKey('$id', $user);
$this->assertArrayHasKey('name', $user);
$this->assertArrayHasKey('email', $user);
$this->assertArrayHasKey('status', $user);
$this->assertArrayNotHasKey('registration', $user);
/**
* Test Query::select with targets (should not be skipped by default)
*/