Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testUniqueResult() |
||
15 | { |
||
16 | $this->insertDocument(1); |
||
17 | $this->insertDocument(2); |
||
18 | $this->insertDocumentWithNumber(3, 1); |
||
19 | |||
20 | /** @var Cursor $cursor */ |
||
21 | $cursor = $this->r() |
||
22 | ->table('tabletest') |
||
23 | ->filter($this->r()->row()->hasFields('number')) |
||
24 | ->run(); |
||
25 | |||
26 | $this->assertInstanceOf(\Iterator::class, $cursor); |
||
27 | $this->assertEquals(1, $cursor->count()); |
||
28 | } |
||
30 |