Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testLimit(): void |
||
15 | { |
||
16 | $this->insertDocument(5); |
||
17 | $this->insertDocument(4); |
||
18 | $this->insertDocument(3); |
||
19 | $this->insertDocument(2); |
||
20 | $this->insertDocument(1); |
||
21 | |||
22 | /** @var ResponseInterface $res */ |
||
23 | $res = $this->r() |
||
24 | ->table('tabletest') |
||
25 | ->orderBy('id') |
||
|
|||
26 | ->run(); |
||
27 | |||
28 | /** @var array $array */ |
||
29 | $array = $res->getData(); |
||
30 | |||
31 | $this->assertArraySubset(['id' => 1], $array[0]); |
||
32 | } |
||
34 |