for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace TBolier\RethinkQL\IntegrationTest\Query;
use TBolier\RethinkQL\Response\ResponseInterface;
class EmptyTableTest extends AbstractTableTest
{
/**
* @throws \Exception
*/
public function testEmptyTable()
/** @var ResponseInterface $count */
$count = $this->r()
->table('tabletest')
->filter(['title' => 'Test document'])
->count()
->run();
$this->assertInternalType('int', $count->getData());
$res = $this->r()
->delete()
$this->assertObStatus(['deleted' => $count->getData()], $res->getData());
}