mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Merge pull request #13654 from appwrite/fix/organization-projects-select-test
test(organization): scope the projects select test to its own project
This commit is contained in:
1 file changed
+5
-2
@@ -471,12 +471,15 @@ trait ProjectsBase
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getOrganizationHeaders()), [
|
||||
'queries' => [
|
||||
Query::equal('$id', [$projectId])->toString(),
|
||||
Query::select(['name'])->toString(),
|
||||
],
|
||||
]);
|
||||
|
||||
$this->assertEquals(200, $response['headers']['status-code']);
|
||||
$this->assertNotEmpty($response['body']['projects']);
|
||||
$this->assertEquals('Organization Project Test', $response['body']['projects'][0]['name']);
|
||||
$this->assertCount(1, $response['body']['projects']);
|
||||
$this->assertSame($projectId, $response['body']['projects'][0]['$id']);
|
||||
$this->assertSame('Organization Project Test', $response['body']['projects'][0]['name']);
|
||||
$this->assertArrayNotHasKey('teamId', $response['body']['projects'][0]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user