1
0
Fork 0
mirror of synced 2024-07-03 21:50:34 +12:00

fix: teams tests

This commit is contained in:
loks0n 2023-12-11 20:56:59 +00:00
parent fe695314a9
commit 453c1928ee
3 changed files with 5 additions and 4 deletions

View file

@ -99,6 +99,6 @@ return [
],
Auth::USER_ROLE_APPS => [
'label' => 'Applications',
'scopes' => ['global', 'sessions', 'health.read', 'graphql'],
'scopes' => ['global', 'health.read', 'graphql'],
],
];

View file

@ -82,7 +82,8 @@ trait ProjectCustom
'avatars.read',
'health.read',
'rules.read',
'rules.write'
'rules.write',
'sessions'
],
]);

View file

@ -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',