mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix dangling tests
This commit is contained in:
@@ -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()), [
|
||||
|
||||
Reference in New Issue
Block a user