| Total Complexity | 2 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class GetAllTest extends AbstractTableTest |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @return void |
||
| 13 | * @throws \Exception |
||
| 14 | */ |
||
| 15 | public function testGetAll(): void |
||
| 16 | { |
||
| 17 | $this->insertDocument(1); |
||
| 18 | $this->insertDocument('stringId'); |
||
| 19 | |||
| 20 | /** @var Cursor $cursor */ |
||
| 21 | $cursor = $this->r() |
||
| 22 | ->table('tabletest') |
||
| 23 | ->getAll(1, 'stringId') |
||
| 24 | ->run(); |
||
| 25 | |||
| 26 | /** @var array $array */ |
||
| 27 | $array = $cursor->current(); |
||
| 28 | |||
| 29 | $this->assertArraySubset(['description' => 'A document description.'], $array); |
||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @return void |
||
| 34 | * @throws \Exception |
||
| 35 | */ |
||
| 36 | public function testGetAllAndCount(): void |
||
| 49 | } |
||
| 50 | } |
||
| 51 |