diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index fb76033b35..d987c91405 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -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']); diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index ec906e6544..e50aad788a 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -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([ diff --git a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php index bbf6d70fb0..3b37e4695a 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php @@ -457,7 +457,7 @@ class WebhooksCustomServerTest extends Scope 'key' => 'key1', 'value' => 'value1', ]); - + $this->assertEquals(201, $variable['headers']['status-code']); $webhook = $this->getLastRequest();