1
0
Fork 0
mirror of synced 2024-10-02 10:16:27 +13:00

chore: add more test coverage

This commit is contained in:
Bishwajeet Parhi 2023-05-19 18:18:26 +05:30
parent c2a13b079e
commit 7fe1f56122

View file

@ -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']);