| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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); |
||
| 54 |