| Total Complexity | 2 |
| Total Lines | 43 |
| 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 | // todo: remove assertNull |
||
| 30 | $this->assertNull($array); |
||
| 31 | // $this->assertArraySubset(['title' => 'Test document 1'], $array); |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @return void |
||
| 36 | * @throws \Exception |
||
| 37 | */ |
||
| 38 | public function testGetAllAndCount(): void |
||
| 52 | } |
||
| 53 | } |
||
| 54 |