use getUser to fetch userId in test
This commit is contained in:
parent
385f76d7f2
commit
ebcb43bbad
1 changed files with 1 additions and 7 deletions
|
@ -320,13 +320,7 @@ class DatabasesCustomClientTest extends Scope
|
||||||
|
|
||||||
public function testUpdateWithoutRelationPermission(): void
|
public function testUpdateWithoutRelationPermission(): void
|
||||||
{
|
{
|
||||||
$response = $this->client->call(Client::METHOD_GET, '/account', array_merge([
|
$userId = $this->getUser()['$id'];
|
||||||
'content-type' => 'application/json',
|
|
||||||
'x-appwrite-project' => $this->getProject()['$id'],
|
|
||||||
'x-appwrite-key' => $this->getProject()['apiKey']
|
|
||||||
], $this->getHeaders()));
|
|
||||||
|
|
||||||
$userId = $response['body']['$id'];
|
|
||||||
$database = $this->client->call(Client::METHOD_POST, '/databases', [
|
$database = $this->client->call(Client::METHOD_POST, '/databases', [
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
'x-appwrite-project' => $this->getProject()['$id'],
|
'x-appwrite-project' => $this->getProject()['$id'],
|
||||||
|
|
Loading…
Reference in a new issue