diff --git a/config/bundles.php b/config/bundles.php
index 2aab0a3..7a332dd 100644
--- a/config/bundles.php
+++ b/config/bundles.php
@@ -1,6 +1,6 @@
['test' => true],
- Invis1ble\SerializerExtensionBundle\Invis1bleSerializerExtensionBundle::class => ['test' => true],
+ Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['test' => true, 'serializer_test' => true],
+ Invis1ble\SerializerExtensionBundle\Invis1bleSerializerExtensionBundle::class => ['test' => true, 'serializer_test' => true],
];
diff --git a/config/services.xml b/config/services.xml
index dae1f12..07ed08d 100644
--- a/config/services.xml
+++ b/config/services.xml
@@ -24,18 +24,4 @@
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/config/services_serializer_test.xml b/config/services_serializer_test.xml
new file mode 100644
index 0000000..ec18318
--- /dev/null
+++ b/config/services_serializer_test.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/Invis1bleSerializerExtensionBundle.php b/src/Invis1bleSerializerExtensionBundle.php
index d66343c..92f9518 100644
--- a/src/Invis1bleSerializerExtensionBundle.php
+++ b/src/Invis1bleSerializerExtensionBundle.php
@@ -16,5 +16,9 @@ public function loadExtension(
ContainerBuilder $builder,
): void {
$container->import('../config/services.xml');
+
+ if ('serializer_test' === $container->env()) {
+ $container->import('../config/services_serializer_test.xml');
+ }
}
}
diff --git a/tests/Normalizer/UriNormalizerTest.php b/tests/Normalizer/UriNormalizerTest.php
index 33cace9..5290973 100644
--- a/tests/Normalizer/UriNormalizerTest.php
+++ b/tests/Normalizer/UriNormalizerTest.php
@@ -15,7 +15,7 @@ class UriNormalizerTest extends KernelTestCase
*/
public function itTakesPrecedenceOverPropertyNormalizer(): void
{
- self::bootKernel();
+ self::bootKernel(['environment' => 'serializer_test']);
$container = static::getContainer();