| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function testFilter() |
||
| 12 | { |
||
| 13 | $this->insertDocument(1); |
||
| 14 | |||
| 15 | /** @var \Iterable $cursor */ |
||
| 16 | $cursor = $this->r() |
||
| 17 | ->table('tabletest') |
||
| 18 | ->filter(['title' => 'Test document 1']) |
||
| 19 | ->run(); |
||
| 20 | |||
| 21 | $this->assertInstanceOf(\Iterator::class, $cursor); |
||
| 22 | $this->assertInternalType('array', $cursor->current()); |
||
|
|
|||
| 23 | } |
||
| 45 |