mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
ai review fixes
This commit is contained in:
@@ -5216,13 +5216,13 @@ class ProjectsConsoleClientTest extends Scope
|
||||
|
||||
if (\in_array($projectId, $trustedProjectIds)) {
|
||||
// Trusted projects can
|
||||
$this->assertEquals(200, $currencies['headers']['status-code']);
|
||||
$this->assertSame('http://' . $domain, $currencies['headers']['access-control-allow-origin']);
|
||||
} else {
|
||||
// Untrusted projects cannot
|
||||
$this->assertEquals(403, $currencies['headers']['status-code']);
|
||||
$this->assertArrayNotHasKey('access-control-allow-origin', $currencies['headers']);
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
throw $th;
|
||||
} finally {
|
||||
// Cleanup
|
||||
$response = $this->client->call(Client::METHOD_DELETE, '/projects/' . $projectId, array_merge([
|
||||
|
||||
Reference in New Issue
Block a user