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