| Total Complexity | 6 | 
| Total Lines | 57 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 11 | * @return void | ||
| 12 | * @throws \Exception | ||
| 13 | */ | ||
| 14 | public function testGet(): void | ||
| 15 |     { | ||
| 16 | $this->insertDocument(1); | ||
| 17 | |||
| 18 | /** @var ResponseInterface $res */ | ||
| 19 | $res = $this->r() | ||
| 20 |             ->table('tabletest') | ||
| 21 | ->get(1) | ||
| 22 | ->run(); | ||
| 23 | |||
| 24 | /** @var array $array */ | ||
| 25 | $array = $res->getData(); | ||
| 26 | |||
| 27 | $this->assertArraySubset(['id' => 1], $array); | ||
| 28 | } | ||
| 29 | |||
| 30 | /** | ||
| 31 | * @return void | ||
| 32 | * @throws \Exception | ||
| 33 | */ | ||
| 34 | public function testGetNonExistingDocument(): void | ||
| 43 | } | ||
| 44 | } | ||
| 45 |