mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Remove test for multiple select queries in UsersBase trait
Co-authored-by: jakeb994 <jakeb994@gmail.com>
This commit is contained in:
@@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user