tests serviceStatusForDatabases
This commit is contained in:
parent
b7103e9462
commit
88ba765953
2 changed files with 6 additions and 15 deletions
|
@ -341,14 +341,8 @@ class DatabasesConsoleClientTest extends Scope
|
||||||
'/databases/console/collections/' . $data['moviesId'] . '/documents',
|
'/databases/console/collections/' . $data['moviesId'] . '/documents',
|
||||||
array_merge([
|
array_merge([
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
// 'x-appwrite-project' => $this->getProject()['$id'],
|
|
||||||
'x-appwrite-project' => 'console',
|
'x-appwrite-project' => 'console',
|
||||||
], $this->getHeaders()),
|
], $this->getHeaders())
|
||||||
[
|
|
||||||
'queries' => [
|
|
||||||
Query::limit(1)->toString(),
|
|
||||||
],
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
var_dump($documents);
|
var_dump($documents);
|
||||||
|
|
|
@ -88,19 +88,16 @@ class DatabasesCustomClientTest extends Scope
|
||||||
$this->assertContains(Permission::delete(Role::user($this->getUser()['$id'])), $document1['body']['$permissions']);
|
$this->assertContains(Permission::delete(Role::user($this->getUser()['$id'])), $document1['body']['$permissions']);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Test console serviceStatusForDatabases is false
|
||||||
|
*/
|
||||||
$documents = $this->client->call(
|
$documents = $this->client->call(
|
||||||
Client::METHOD_GET,
|
Client::METHOD_GET,
|
||||||
'/databases/console/collections/' . $moviesId . '/documents',
|
'/databases/console/collections/' . $moviesId . '/documents',
|
||||||
array_merge([
|
array_merge([
|
||||||
'content-type' => 'application/json',
|
'content-type' => 'application/json',
|
||||||
// 'x-appwrite-project' => $this->getProject()['$id'],
|
'x-appwrite-project' => 'console'
|
||||||
'x-appwrite-project' => 'console',
|
], $this->getHeaders())
|
||||||
], $this->getHeaders()),
|
|
||||||
[
|
|
||||||
'queries' => [
|
|
||||||
Query::limit(1)->toString(),
|
|
||||||
],
|
|
||||||
]
|
|
||||||
);
|
);
|
||||||
|
|
||||||
var_dump($documents);
|
var_dump($documents);
|
||||||
|
|
Loading…
Reference in a new issue