1
0
Fork 0
mirror of synced 2024-07-06 23:21:05 +12:00

test: Testing team delete removes membership

This commit is contained in:
Binyamin Yawitz 2024-06-26 13:17:08 -04:00
parent 93d4efbc0e
commit d113fb2751
No known key found for this signature in database

View file

@ -55,7 +55,7 @@ class TeamsCustomServerTest extends Scope
], false);
$this->assertEquals(201, $user['headers']['status-code']);
$userId = json_decode($user['body'], true)['$id'];
$userId = $user['body']['$id'];
/* 3. Add membership to user. */
$response = $this->client->call(Client::METHOD_POST, '/teams/' . $teamUid . '/memberships', array_merge([
@ -76,6 +76,7 @@ class TeamsCustomServerTest extends Scope
'x-appwrite-project' => $this->getProject()['$id'],
'x-appwrite-key' => $this->getProject()['apiKey'],
], $this->getHeaders()));
$this->assertEquals(200, $response['headers']['status-code']);
$this->assertEquals($teamUid, $response['body']['memberships'][0]['teamId']);