/** * Test if Databases can be created, if they can be listed, if they can be listed for the current user and deleted again */ public function testCreateDatabaseGetListOfDatabasesAndDeleteItAgain() { $database = 'ArangoTestSuiteDatabaseTest01'; $response = Database::create($this->connection, $database); $this->assertTrue($response['error'] == false, 'result[\'error\'] Did not return false, instead returned: ' . print_r($response, 1)); $response = Database::listDatabases($this->connection); $this->assertArrayHasKey($database, array_flip($response['result'])); $responseUser = Database::listUserDatabases($this->connection); $this->assertArrayHasKey($database, array_flip($responseUser['result'])); $response = Database::delete($this->connection, $database); $this->assertTrue($response['error'] == false, 'result[\'error\'] Did not return false, instead returned: ' . print_r($response, 1)); }