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