| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 1 |
| 1 | <?php |
||
| 17 | public function testIndex() |
||
| 18 | { |
||
| 19 | $container = Container::getInstance(); |
||
| 20 | $container->set('hello.keys.public', CryptHelper::makeCryptKey('public')); |
||
| 21 | |||
| 22 | $controller = new KeysController(); |
||
| 23 | /** @var JsonResponse $response */ |
||
| 24 | $response = $controller->callAction('index'); |
||
|
|
|||
| 25 | |||
| 26 | self::assertInstanceOf(JsonResponse::class, $response); |
||
| 27 | $content = $response->getContent(); |
||
| 28 | self::assertJson($content); |
||
| 29 | } |
||
| 31 |