| Total Complexity | 2 |
| Total Lines | 32 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | class GetTest extends AbstractTableTest |
||
| 9 | { |
||
| 10 | /** |
||
| 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 | $this->assertArraySubset(['id' => 1], $res->getData()); |
||
|
1 ignored issue
–
show
|
|||
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return void |
||
| 29 | * @throws \Exception |
||
| 30 | */ |
||
| 31 | public function testGetNonExistingDocument(): void |
||
| 40 | } |
||
| 41 | } |
||
| 42 |