From f03035451fc7abefe53dbe8684de4318ce083f6f Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Mon, 26 Dec 2022 10:22:25 +0000 Subject: [PATCH] fix test --- .../Services/Projects/ProjectsConsoleClientTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php index a7ca0cc86e..53eb8ba2c8 100644 --- a/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php +++ b/tests/e2e/Services/Projects/ProjectsConsoleClientTest.php @@ -1173,7 +1173,7 @@ class ProjectsConsoleClientTest extends Scope 'name' => $name, ]); - $this->assertEquals(403, $response['headers']['status-code']); + $this->assertEquals(400, $response['headers']['status-code']); /** * Create user @@ -1188,7 +1188,7 @@ class ProjectsConsoleClientTest extends Scope 'password' => 'password', 'name' => 'Cristiano Ronaldo', ]); - $this->assertEquals(403, $response['headers']['status-code']); + $this->assertEquals(400, $response['headers']['status-code']); $headers = array_merge($this->getHeaders(), [ 'x-appwrite-mode' => 'admin', @@ -1200,7 +1200,7 @@ class ProjectsConsoleClientTest extends Scope 'password' => $password, ]); - $this->assertEquals(403, $response['headers']['status-code']); + $this->assertEquals(400, $response['headers']['status-code']); /** @@ -1223,11 +1223,11 @@ class ProjectsConsoleClientTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'enabled' => true, + 'enabled' => false, ]); $this->assertEquals(200, $response['headers']['status-code']); - $this->assertEquals(true, $response['body']['authPasswordDictionary']); + $this->assertEquals(false, $response['body']['authPasswordDictionary']); return $data; }