Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function testLimitWithMultipleTransformations(): void |
||
34 | { |
||
35 | $this->insertDocument(1); |
||
36 | $this->insertDocument(2); |
||
37 | $this->insertDocument(3); |
||
38 | $this->insertDocument(4); |
||
39 | $this->insertDocument(5); |
||
40 | |||
41 | /** @var ResponseInterface $cursor */ |
||
42 | $response = $this->r() |
||
43 | ->table('tabletest') |
||
44 | ->filter(['description' => 'A document description.']) |
||
45 | ->orderBy($this->r()->desc('id')) |
||
46 | ->skip(1) |
||
47 | ->limit(2) |
||
48 | ->run(); |
||
49 | |||
50 | $this->assertCount(2, $response->getData()); |
||
1 ignored issue
–
show
|
|||
51 | } |
||
53 |