1
0
Fork 0
mirror of synced 2024-07-02 05:00:33 +12:00

test: Testing team delete removes membership

This commit is contained in:
Binyamin Yawitz 2024-06-26 13:28:41 -04:00
parent f8869efa42
commit 5e14cdef11
No known key found for this signature in database

View file

@ -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. */