We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2058bc6 commit 461b513Copy full SHA for 461b513
tests/TestApplication/config/config.yaml
@@ -1,5 +1,6 @@
1
imports:
2
- { resource: "@AcmeSyliusExamplePlugin/config/config.yaml" }
3
+ - { resource: "services_test.php" }
4
5
twig:
6
paths:
tests/TestApplication/config/services_test.php
@@ -0,0 +1,14 @@
+<?php
+
+declare(strict_types=1);
+use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
7
+return function (ContainerConfigurator $container) {
8
+ $env = $_ENV['APP_ENV'] ?? 'dev';
9
10
+ if (str_starts_with($env, 'test')) {
11
+ $container->import('../../../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml');
12
+ $container->import('@AcmeSyliusExamplePlugin/tests/Behat/Resources/services.xml');
13
+ }
14
+};
0 commit comments