From c440a3933bf9cb6ba593c477bb21fcbfaf1e84e7 Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Tue, 11 Feb 2025 18:42:18 +0530 Subject: [PATCH] Fix functions tests --- tests/e2e/Services/Functions/FunctionsConsoleClientTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php b/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php index 0314651932..d282b7b269 100644 --- a/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php +++ b/tests/e2e/Services/Functions/FunctionsConsoleClientTest.php @@ -352,6 +352,7 @@ class FunctionsConsoleClientTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ + 'key' => 'APP_TEST_UPDATE', 'secret' => false ]); @@ -493,7 +494,7 @@ class FunctionsConsoleClientTest extends Scope $this->assertEmpty($execution['body']['logs']); $this->assertEmpty($execution['body']['errors']); $body = json_decode($execution['body']['responseBody']); - $this->assertEquals('a_secret_value', $body['CUSTOM_VARIABLE']); + $this->assertEquals('a_secret_value', $body->CUSTOM_VARIABLE); $this->cleanupFunction($functionId); }