fix: teams tests
This commit is contained in:
parent
fe695314a9
commit
453c1928ee
|
@ -99,6 +99,6 @@ return [
|
|||
],
|
||||
Auth::USER_ROLE_APPS => [
|
||||
'label' => 'Applications',
|
||||
'scopes' => ['global', 'sessions', 'health.read', 'graphql'],
|
||||
'scopes' => ['global', 'health.read', 'graphql'],
|
||||
],
|
||||
];
|
||||
|
|
|
@ -82,7 +82,8 @@ trait ProjectCustom
|
|||
'avatars.read',
|
||||
'health.read',
|
||||
'rules.read',
|
||||
'rules.write'
|
||||
'rules.write',
|
||||
'sessions'
|
||||
],
|
||||
]);
|
||||
|
||||
|
|
|
@ -223,10 +223,10 @@ trait TeamsBaseClient
|
|||
*/
|
||||
$secondEmail = uniqid() . 'foe@localhost.test';
|
||||
$secondName = 'Another Foe';
|
||||
$response = $this->client->call(Client::METHOD_POST, '/account', array_merge([
|
||||
$response = $this->client->call(Client::METHOD_POST, '/account', [
|
||||
'content-type' => 'application/json',
|
||||
'x-appwrite-project' => $this->getProject()['$id'],
|
||||
], $this->getHeaders()), [
|
||||
], [
|
||||
'userId' => 'unique()',
|
||||
'email' => $secondEmail,
|
||||
'password' => 'password',
|
||||
|
|
Loading…
Reference in a new issue