From cad1ff6565e41dc59dba35cb0e27d762e9d03104 Mon Sep 17 00:00:00 2001 From: Perreal Guillaume <guillaume.perreal@irstea.fr> Date: Mon, 19 Aug 2019 17:23:59 +0200 Subject: [PATCH] dev: routage. --- tests/Fixtures/TestKernel.php | 1 + tests/Fixtures/config/routes.yaml | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 tests/Fixtures/config/routes.yaml diff --git a/tests/Fixtures/TestKernel.php b/tests/Fixtures/TestKernel.php index 36e2aa8..230fc87 100644 --- a/tests/Fixtures/TestKernel.php +++ b/tests/Fixtures/TestKernel.php @@ -57,6 +57,7 @@ final class TestKernel extends Kernel */ protected function configureRoutes(RouteCollectionBuilder $routes) { + $routes->import(__DIR__ . '/config/routes.yaml', '', 'yaml'); } /** diff --git a/tests/Fixtures/config/routes.yaml b/tests/Fixtures/config/routes.yaml new file mode 100644 index 0000000..38f11cb --- /dev/null +++ b/tests/Fixtures/config/routes.yaml @@ -0,0 +1,4 @@ +api_platform: + resource: . + type: api_platform + prefix: /api -- GitLab