Total Complexity | 6 |
Total Lines | 59 |
Duplicated Lines | 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 | } |
||
24 | |||
25 | /** |
||
26 | * @throws \Exception |
||
27 | */ |
||
28 | public function testFilterOnMultipleDocuments() |
||
43 | } |
||
44 | } |
||
45 |