| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function testIndexAction(): void |
||
| 13 | { |
||
| 14 | $controller = new DescriptorController($data = [ |
||
| 15 | 'name' => 'test dev', |
||
| 16 | ]); |
||
| 17 | |||
| 18 | $response = $controller->indexAction(); |
||
| 19 | |||
| 20 | $this->assertEquals(200, $response->getStatusCode()); |
||
| 21 | $this->assertEquals(json_encode($data), $response->getContent()); |
||
| 22 | $this->assertEquals('application/json', $response->headers->get('Content-Type')); |
||
| 23 | } |
||
| 25 |