From 5e14cdef117738a9868f1135edee86c50d7e61dd Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz <316103+byawitz@users.noreply.github.com> Date: Wed, 26 Jun 2024 13:28:41 -0400 Subject: [PATCH] test: Testing team delete removes membership --- tests/e2e/Services/Teams/TeamsCustomServerTest.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/e2e/Services/Teams/TeamsCustomServerTest.php b/tests/e2e/Services/Teams/TeamsCustomServerTest.php index 32af0a4cbe..52f480c524 100644 --- a/tests/e2e/Services/Teams/TeamsCustomServerTest.php +++ b/tests/e2e/Services/Teams/TeamsCustomServerTest.php @@ -47,7 +47,7 @@ class TeamsCustomServerTest extends Scope // Create a user account before we create a invite so we can check if the user has permissions when it shouldn't $user = $this->client->call(Client::METHOD_POST, '/account', [ 'content-type' => 'application/json', - 'x-appwrite-project' => 'console' + 'x-appwrite-project' => $this->getProject()['$id'], ], [ 'userId' => $userId, 'email' => $email, @@ -62,12 +62,10 @@ class TeamsCustomServerTest extends Scope 'content-type' => 'application/json', 'x-appwrite-project' => $this->getProject()['$id'], ], $this->getHeaders()), [ - 'email' => $email, - 'name' => $name, + 'userId' => $userId, 'roles' => ['admin', 'editor'], 'url' => 'http://localhost:5000/join-us#title' ]); - $this->assertEquals(201, $response['headers']['status-code']); /* 4. Ensure user is a member. */