mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
Linter fix
This commit is contained in:
parent
23c4fa27be
commit
65bb7c6dfd
2 changed files with 4 additions and 4 deletions
|
|
@ -145,7 +145,7 @@ class Create extends Action
|
|||
) {
|
||||
$owner = 'Appwrite';
|
||||
}
|
||||
|
||||
|
||||
$rule = new Document([
|
||||
'$id' => $ruleId,
|
||||
'projectId' => $project->getId(),
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ class ProjectsCustomServerTest extends Scope
|
|||
public function testCreateProjectRule()
|
||||
{
|
||||
$testId = \uniqid();
|
||||
|
||||
|
||||
$headers = array_merge([
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
|
|
@ -31,14 +31,14 @@ class ProjectsCustomServerTest extends Scope
|
|||
]);
|
||||
|
||||
\var_dump($response);
|
||||
|
||||
|
||||
$this->assertEquals(201, $response['headers']['status-code']);
|
||||
|
||||
$response = $this->client->call(Client::METHOD_POST, '/proxy/rules/api', $headers, [
|
||||
'resourceType' => 'api',
|
||||
'domain' => $testId . '-abc.test.io',
|
||||
]);
|
||||
|
||||
|
||||
$this->assertEquals(201, $response['headers']['status-code']);
|
||||
|
||||
// duplicate rule
|
||||
|
|
|
|||
Loading…
Reference in a new issue