diff --git a/Tests/Functional/Resources/routes.yaml b/Tests/Functional/Resources/routes.yaml index 0e118e9..66e8be6 100644 --- a/Tests/Functional/Resources/routes.yaml +++ b/Tests/Functional/Resources/routes.yaml @@ -24,6 +24,11 @@ fos_rest: type: annotation +api_platform: + resource: . + prefix: /api + type: api_platform + # Controllers doc_area: path: /docs/{area} diff --git a/Tests/Functional/TestKernel.php b/Tests/Functional/TestKernel.php index a865e78..58e893c 100644 --- a/Tests/Functional/TestKernel.php +++ b/Tests/Functional/TestKernel.php @@ -81,8 +81,6 @@ class TestKernel extends Kernel */ protected function configureRoutes($routes) { - $this->import($routes, '', '/api', 'api_platform'); - $this->import($routes, __DIR__.'/Resources/routes.yaml', '/', 'yaml'); if (class_exists(SerializedName::class)) { diff --git a/Tests/Functional/WebTestCase.php b/Tests/Functional/WebTestCase.php index 54bfdde..846c59a 100644 --- a/Tests/Functional/WebTestCase.php +++ b/Tests/Functional/WebTestCase.php @@ -171,7 +171,7 @@ class WebTestCase extends BaseWebTestCase } /** - * BC symfony < 5.3 + * BC symfony < 5.3. */ protected static function getContainer(): ContainerInterface {