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\Manipulation;
use TBolier\RethinkQL\IntegrationTest\Query\AbstractTableTest;
use TBolier\RethinkQL\Response\ResponseInterface;
class ValuesTest extends AbstractTableTest
{
/**
* @throws \Exception
*/
public function testValuesResult()
$this->insertDocumentWithNumber(1, 777);
/** @var ResponseInterface $cursor */
$response = $this->r()
->table('tabletest')
->get(1)
->values()
->run();
$this->assertInstanceOf(ResponseInterface::class, $response);
$this->assertCount(4, $response->getData());
$this->assertArraySubset([2 => 777], $response->getData());
}