1
0
Fork 0
mirror of synced 2024-06-02 19:04:49 +12:00

add test for duplicate team membership verification

This commit is contained in:
Malte2036 2022-01-18 23:32:36 +01:00
parent 9f42a53a53
commit d43486ec6b

View file

@ -306,6 +306,17 @@ trait TeamsBaseClient
$this->assertEquals(400, $response['headers']['status-code']);
$response = $this->client->call(Client::METHOD_PATCH, '/teams/'.$teamUid.'/memberships/'.$membershipUid.'/status', array_merge([
'origin' => 'http://localhost',
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
]), [
'secret' => $secret,
'userId' => $userUid,
]);
$this->assertEquals(409, $response['headers']['status-code']);
return $data;
}