test: Testing team delete removes membership
This commit is contained in:
parent
f8869efa42
commit
5e14cdef11
1 changed files with 2 additions and 4 deletions
|
@ -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
|
// 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', [
|
$user = $this->client->call(Client::METHOD_POST, '/account', [
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
'x-appwrite-project' => 'console'
|
'x-appwrite-project' => $this->getProject()['$id'],
|
||||||
], [
|
], [
|
||||||
'userId' => $userId,
|
'userId' => $userId,
|
||||||
'email' => $email,
|
'email' => $email,
|
||||||
|
@ -62,12 +62,10 @@ class TeamsCustomServerTest extends Scope
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
'x-appwrite-project' => $this->getProject()['$id'],
|
'x-appwrite-project' => $this->getProject()['$id'],
|
||||||
], $this->getHeaders()), [
|
], $this->getHeaders()), [
|
||||||
'email' => $email,
|
'userId' => $userId,
|
||||||
'name' => $name,
|
|
||||||
'roles' => ['admin', 'editor'],
|
'roles' => ['admin', 'editor'],
|
||||||
'url' => 'http://localhost:5000/join-us#title'
|
'url' => 'http://localhost:5000/join-us#title'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->assertEquals(201, $response['headers']['status-code']);
|
$this->assertEquals(201, $response['headers']['status-code']);
|
||||||
|
|
||||||
/* 4. Ensure user is a member. */
|
/* 4. Ensure user is a member. */
|
||||||
|
|
Loading…
Reference in a new issue