Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
29 | public function testFilterCount() |
||
30 | { |
||
31 | $this->insertDocument(1); |
||
32 | $this->insertDocument(2); |
||
33 | $this->insertDocument(3); |
||
34 | $this->insertDocument(4); |
||
35 | $this->insertDocument(5); |
||
36 | |||
37 | /** @var ResponseInterface $res */ |
||
38 | $res = $this->r() |
||
39 | ->table('tabletest') |
||
40 | ->filter(['id' => 1]) |
||
41 | ->count() |
||
42 | ->run(); |
||
43 | |||
44 | $this->assertEquals(1, $res->getData()); |
||
45 | } |
||
68 |