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