Fix dangling tests

This commit is contained in:
Jake Barnby
2025-08-19 01:24:51 +12:00
parent 434c199510
commit c1e37b9130
3 changed files with 3 additions and 3 deletions
@@ -32,7 +32,7 @@ trait DatabasesBase
$this->assertNotEmpty($database['body']['$id']);
$this->assertEquals(201, $database['headers']['status-code']);
$this->assertEquals('Test Database', $database['body']['name']);
$this->assertEquals('grids', $database['body']['type']);
$this->assertEquals('tablesdb', $database['body']['type']);
// testing to create a database with type
$database2 = $this->client->call(Client::METHOD_POST, '/databases', [
@@ -32,7 +32,7 @@ trait DatabasesBase
$this->assertNotEmpty($database['body']['$id']);
$this->assertEquals(201, $database['headers']['status-code']);
$this->assertEquals('Test Database', $database['body']['name']);
$this->assertEquals('grids', $database['body']['type']);
$this->assertEquals('tablesdb', $database['body']['type']);
// testing to create a database with type
$database2 = $this->client->call(Client::METHOD_POST, '/tablesdb', [
@@ -1144,7 +1144,7 @@ trait MigrationsBase
}, 10_000, 500);
// get rows count
$rows = $this->client->call(Client::METHOD_GET, '/databases/'.$databaseId.'/grids/tables/'.$tableId.'/rows', array_merge([
$rows = $this->client->call(Client::METHOD_GET, '/tablesdb/'.$databaseId.'/tables/'.$tableId.'/rows', array_merge([
'content-type' => 'application/json',
'x-appwrite-project' => $this->getProject()['$id'],
], $this->getHeaders()), [