mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix auth test
This commit is contained in:
@@ -51,7 +51,9 @@ class GraphQLAuthTest extends Scope
|
||||
], $graphQLPayload);
|
||||
|
||||
// Create account 2
|
||||
$graphQLPayload['variables']['userId'] = ID::unique();
|
||||
$graphQLPayload['variables']['email'] = $email2;
|
||||
|
||||
$account2 = $this->client->call(Client::METHOD_POST, '/graphql', [
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $projectId,
|
||||
|
||||
@@ -1013,7 +1013,7 @@ trait GraphQLBase
|
||||
}';
|
||||
case self::$GET_TEAM_MEMBERSHIP:
|
||||
return 'query getTeamMembership($teamId: String!, $membershipId: String!){
|
||||
teamsListMembership(teamId: $teamId, membershipId: $membershipId) {
|
||||
teamsGetMembership(teamId: $teamId, membershipId: $membershipId) {
|
||||
_id
|
||||
teamId
|
||||
userId
|
||||
|
||||
@@ -64,8 +64,6 @@ class GraphQLUsersTest extends Scope
|
||||
'x-appwrite-project' => $projectId,
|
||||
], $this->getHeaders()), $graphQLPayload);
|
||||
|
||||
\var_dump($users);
|
||||
|
||||
$this->assertIsArray($users['body']['data']);
|
||||
$this->assertArrayNotHasKey('errors', $users['body']);
|
||||
$this->assertIsArray($users['body']['data']['usersList']);
|
||||
|
||||
Reference in New Issue
Block a user