1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

Run Linter

This commit is contained in:
Bradley Schofield 2022-08-03 13:35:11 +00:00
parent f62ad19ecd
commit 2650706be1
3 changed files with 16 additions and 16 deletions

View file

@ -91,7 +91,7 @@ class FunctionsCustomClientTest extends Scope
'key' => 'funcKey3',
'value' => 'funcValue3',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$this->assertEquals(201, $variable2['headers']['status-code']);
$this->assertEquals(201, $variable3['headers']['status-code']);
@ -177,7 +177,7 @@ class FunctionsCustomClientTest extends Scope
$functionId = $function['body']['$id'] ?? '';
$this->assertEquals(201, $function['headers']['status-code']);
/** Create Variables */
$variable = $this->client->call(Client::METHOD_POST, '/functions/variables/' . $functionId, [
'content-type' => 'application/json',
@ -187,7 +187,7 @@ class FunctionsCustomClientTest extends Scope
'key' => 'funcKey1',
'value' => 'funcValue1',
]);
$variable2 = $this->client->call(Client::METHOD_POST, '/functions/variables/' . $functionId, [
'content-type' => 'application/json',
'x-appwrite-project' => $projectId,
@ -196,7 +196,7 @@ class FunctionsCustomClientTest extends Scope
'key' => 'funcKey2',
'value' => 'funcValue2',
]);
$variable3 = $this->client->call(Client::METHOD_POST, '/functions/variables/' . $functionId, [
'content-type' => 'application/json',
'x-appwrite-project' => $projectId,
@ -205,7 +205,7 @@ class FunctionsCustomClientTest extends Scope
'key' => 'funcKey3',
'value' => 'funcValue3',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$this->assertEquals(201, $variable2['headers']['status-code']);
$this->assertEquals(201, $variable3['headers']['status-code']);
@ -399,7 +399,7 @@ class FunctionsCustomClientTest extends Scope
'key' => 'funcKey1',
'value' => 'funcValue1',
]);
$variable2 = $this->client->call(Client::METHOD_POST, '/functions/variables/' . $functionId, [
'content-type' => 'application/json',
'x-appwrite-project' => $projectId,
@ -408,7 +408,7 @@ class FunctionsCustomClientTest extends Scope
'key' => 'funcKey2',
'value' => 'funcValue2',
]);
$variable3 = $this->client->call(Client::METHOD_POST, '/functions/variables/' . $functionId, [
'content-type' => 'application/json',
'x-appwrite-project' => $projectId,
@ -417,7 +417,7 @@ class FunctionsCustomClientTest extends Scope
'key' => 'funcKey3',
'value' => 'funcValue3',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$this->assertEquals(201, $variable2['headers']['status-code']);
$this->assertEquals(201, $variable3['headers']['status-code']);

View file

@ -76,7 +76,7 @@ class FunctionsCustomServerTest extends Scope
'key' => 'funcKey3',
'value' => 'funcValue3',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$this->assertEquals(201, $variable2['headers']['status-code']);
$this->assertEquals(201, $variable3['headers']['status-code']);
@ -162,7 +162,7 @@ class FunctionsCustomServerTest extends Scope
'key' => 'funcKey1',
'value' => 'funcValue1',
]);
$variable2 = $this->client->call(Client::METHOD_POST, '/functions/variables/' . $response['body']['$id'], array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
@ -170,7 +170,7 @@ class FunctionsCustomServerTest extends Scope
'key' => 'funcKey2',
'value' => 'funcValue2',
]);
$variable3 = $this->client->call(Client::METHOD_POST, '/functions/variables/' . $response['body']['$id'], array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
@ -178,7 +178,7 @@ class FunctionsCustomServerTest extends Scope
'key' => 'funcKey3',
'value' => 'funcValue3',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$this->assertEquals(201, $variable2['headers']['status-code']);
$this->assertEquals(201, $variable3['headers']['status-code']);
@ -956,7 +956,7 @@ class FunctionsCustomServerTest extends Scope
'key' => 'CUSTOM_VARIABLE',
'value' => 'variable',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([
@ -1182,7 +1182,7 @@ class FunctionsCustomServerTest extends Scope
'key' => 'CUSTOM_VARIABLE',
'value' => 'variable',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([
@ -1295,7 +1295,7 @@ class FunctionsCustomServerTest extends Scope
'key' => 'CUSTOM_VARIABLE',
'value' => 'variable',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$deployment = $this->client->call(Client::METHOD_POST, '/functions/' . $functionId . '/deployments', array_merge([

View file

@ -457,7 +457,7 @@ class WebhooksCustomServerTest extends Scope
'key' => 'key1',
'value' => 'value1',
]);
$this->assertEquals(201, $variable['headers']['status-code']);
$webhook = $this->getLastRequest();