for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace TBolier\RethinkConnect\Test\Connection;
use ArrayObject;
use TBolier\RethinkQL\IntegrationTest\BaseTestCase;
class DatabaseTest extends BaseTestCase
{
/**
* @throws \Exception
*/
public function testTableList()
$res = $this->r()
->db()
->tableList()
->run();
$this->assertInternalType('array', $res->getData());
}
public function testCreateTable()
->tableCreate('createtable')
$this->assertObStatus(['tables_created' => 1], $res->getData());
public function testDropTable()
$this->r()
->tableDrop('createtable')
$this->assertObStatus(['tables_dropped' => 1], $res->getData());