Release 2.53 (#5878)
This commit is contained in:
@@ -32,6 +32,7 @@ class ApiDocControllerTest extends AbstractControllerBaseTestCase
|
||||
self::assertStringContainsString('const config = {"basePath":"/api/doc","router":"memory","logo":"/touch-icon-192x192.png","hideInternal":true};', $content);
|
||||
$results = preg_match('/docs\.apiDescriptionDocument\ \=\ (.*)\.spec;/', $content, $matches);
|
||||
self::assertNotFalse($results);
|
||||
self::assertArrayHasKey(1, $matches);
|
||||
$swaggerJson = json_decode($matches[1], true);
|
||||
self::assertIsArray($swaggerJson);
|
||||
self::assertArrayHasKey('spec', $swaggerJson);
|
||||
|
||||
Reference in New Issue
Block a user