diff --git a/.travis.yml b/.travis.yml index 6857dad886..4e961b6379 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,6 +28,7 @@ before_install: - export COMPOSE_INTERACTIVE_NO_CLI=1 install: +- echo "_APP_FUNCTIONS_ENVS=php-8.0" >> .env - docker-compose up -d - sleep 10 diff --git a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php index f6b4ccbf3f..12a9edf245 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomClientTest.php @@ -54,7 +54,7 @@ class FunctionsCustomClientTest extends Scope ], [ 'name' => 'Test', 'execute' => ['user:'.$this->getUser()['$id']], - 'env' => 'php-7.4', + 'env' => 'php-8.0', 'vars' => [ 'funcKey1' => 'funcValue1', 'funcKey2' => 'funcValue2', @@ -140,7 +140,7 @@ class FunctionsCustomClientTest extends Scope ], [ 'name' => 'Test', 'execute' => ['*'], - 'env' => 'php-7.4', + 'env' => 'php-8.0', 'vars' => [ 'funcKey1' => 'funcValue1', 'funcKey2' => 'funcValue2', diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index eafb6949e6..f0eab6b0c7 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -24,7 +24,7 @@ class FunctionsCustomServerTest extends Scope 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'name' => 'Test', - 'env' => 'php-7.4', + 'env' => 'php-8.0', 'vars' => [ 'funcKey1' => 'funcValue1', 'funcKey2' => 'funcValue2', @@ -43,7 +43,7 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals(201, $response1['headers']['status-code']); $this->assertNotEmpty($response1['body']['$id']); $this->assertEquals('Test', $response1['body']['name']); - $this->assertEquals('php-7.4', $response1['body']['env']); + $this->assertEquals('php-8.0', $response1['body']['env']); $this->assertIsInt($response1['body']['dateCreated']); $this->assertIsInt($response1['body']['dateUpdated']); $this->assertEquals('', $response1['body']['tag']); diff --git a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php index 2b7753c372..0ef01ec850 100644 --- a/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php +++ b/tests/e2e/Services/Webhooks/WebhooksCustomServerTest.php @@ -306,7 +306,7 @@ class WebhooksCustomServerTest extends Scope 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'name' => 'Test', - 'env' => 'php-7.4', + 'env' => 'php-8.0', 'execute' => ['*'], 'timeout' => 10, ]); @@ -348,7 +348,7 @@ class WebhooksCustomServerTest extends Scope 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ 'name' => 'Test', - 'env' => 'php-7.4', + 'env' => 'php-8.0', 'execute' => ['*'], 'vars' => [ 'key1' => 'value1',