| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 36 | public function testOrderByAsc(): void |
||
| 37 | { |
||
| 38 | $this->insertDocument(5); |
||
| 39 | $this->insertDocument(4); |
||
| 40 | $this->insertDocument(3); |
||
| 41 | $this->insertDocument(2); |
||
| 42 | $this->insertDocument(1); |
||
| 43 | |||
| 44 | /** @var ResponseInterface $res */ |
||
| 45 | $res = $this->r() |
||
| 46 | ->table('tabletest') |
||
| 47 | ->orderBy($this->r()->asc('id')) |
||
| 48 | ->run(); |
||
| 49 | |||
| 50 | $this->assertArraySubset(['id' => 1], $res->getData()[0]); |
||
| 51 | } |
||
| 53 |