Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | public function testFilter() |
||
35 | { |
||
36 | $this->insertDocument(1); |
||
37 | |||
38 | /** @var Cursor $cursor */ |
||
39 | $cursor = $this->r() |
||
40 | ->table('tabletest') |
||
41 | ->filter([ |
||
42 | [ |
||
43 | 'title' => 'Test document', |
||
44 | ], |
||
45 | ]) |
||
46 | ->run(); |
||
47 | |||
48 | $this->assertInstanceOf(\Iterator::class, $cursor); |
||
49 | $this->assertInternalType('array', $cursor->current()); |
||
50 | } |
||
72 |