Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
50 | public function testFilterCountOnMultipleDocuments() |
||
51 | { |
||
52 | $this->insertDocument(1); |
||
53 | $this->insertDocument(2); |
||
54 | $this->insertDocument(3); |
||
55 | $this->insertDocument(4); |
||
56 | $this->insertDocument(5); |
||
57 | |||
58 | /** @var ResponseInterface $res */ |
||
59 | $res = $this->r() |
||
60 | ->table('tabletest') |
||
61 | ->filter(['description' => 'A document description.']) |
||
62 | ->count() |
||
63 | ->run(); |
||
64 | |||
65 | $this->assertEquals(5, $res->getData()); |
||
66 | } |
||
68 |