From e816edc04716513d67e85cc8f0422014b45c10a8 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sat, 29 Jan 2022 04:54:47 +0400 Subject: [PATCH] feat: fix tests --- .../Services/Functions/FunctionsCustomServerTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php index c5784e573..d740e3942 100644 --- a/tests/e2e/Services/Functions/FunctionsCustomServerTest.php +++ b/tests/e2e/Services/Functions/FunctionsCustomServerTest.php @@ -668,12 +668,12 @@ class FunctionsCustomServerTest extends Scope $this->assertEquals(204, $function['headers']['status-code']); $this->assertEmpty($function['body']); - // $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'], array_merge([ - // 'content-type' => 'application/json', - // 'x-appwrite-project' => $this->getProject()['$id'], - // ], $this->getHeaders())); + $function = $this->client->call(Client::METHOD_GET, '/functions/' . $data['functionId'], array_merge([ + 'content-type' => 'application/json', + 'x-appwrite-project' => $this->getProject()['$id'], + ], $this->getHeaders())); - // $this->assertEquals(404, $function['headers']['status-code']); + $this->assertEquals(404, $function['headers']['status-code']); /** * Test for FAILURE