chore: add more test coverage
This commit is contained in:
parent
c2a13b079e
commit
7fe1f56122
1 changed files with 3 additions and 0 deletions
|
@ -286,6 +286,7 @@ class DatabasesCustomServerTest extends Scope
|
|||
]);
|
||||
$this->assertEquals(201, $database['headers']['status-code']);
|
||||
$this->assertEquals('invalidDocumentDatabase', $database['body']['name']);
|
||||
$this->assertTrue($database['body']['enabled']);
|
||||
|
||||
$databaseId = $database['body']['$id'];
|
||||
/**
|
||||
|
@ -330,7 +331,9 @@ class DatabasesCustomServerTest extends Scope
|
|||
|
||||
$this->assertEquals(2, $collections['body']['total']);
|
||||
$this->assertEquals($test1['body']['$id'], $collections['body']['collections'][0]['$id']);
|
||||
$this->assertEquals($test1['body']['enabled'], $collections['body']['collections'][0]['enabled']);
|
||||
$this->assertEquals($test2['body']['$id'], $collections['body']['collections'][1]['$id']);
|
||||
$this->assertEquals($test1['body']['enabled'], $collections['body']['collections'][0]['enabled']);
|
||||
|
||||
$base = array_reverse($collections['body']['collections']);
|
||||
|
||||
|
|
Loading…
Reference in a new issue