From d8e8c917fbdcf18cda35ffdb14215b6159be141a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20W=C3=B3js?= Date: Tue, 28 May 2024 09:37:49 +0200 Subject: [PATCH] Fixed translation test --- tests/integration/IbexaTestKernel.php | 12 ++++++++++-- .../IbexaTestKernelForTranslationTest.php | 18 ++++++++++++++++++ tests/integration/TranslationTest.php | 5 +++++ 3 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 tests/integration/IbexaTestKernelForTranslationTest.php diff --git a/tests/integration/IbexaTestKernel.php b/tests/integration/IbexaTestKernel.php index 1c26428a..3c416e3c 100644 --- a/tests/integration/IbexaTestKernel.php +++ b/tests/integration/IbexaTestKernel.php @@ -32,7 +32,7 @@ use Symfony\Component\Notifier\NotifierInterface; use Symfony\WebpackEncoreBundle\WebpackEncoreBundle; -final class IbexaTestKernel extends BaseIbexaTestKernel +class IbexaTestKernel extends BaseIbexaTestKernel { public function registerBundles(): iterable { @@ -72,11 +72,19 @@ protected static function getExposedServicesById(): iterable yield 'ibexa.cache_pool' => TagAwareAdapterInterface::class; } + protected function skipOverridingCustomTagConfig(): bool + { + return false; + } + public function registerContainerConfiguration(LoaderInterface $loader): void { parent::registerContainerConfiguration($loader); - $loader->load(__DIR__ . '/../lib/_settings/common.yaml'); + if (!$this->skipOverridingCustomTagConfig()) { + $loader->load(__DIR__ . '/../lib/_settings/common.yaml'); + } + $loader->load(__DIR__ . '/Resources/config.yaml'); $loader->load(static function (ContainerBuilder $container): void { $container->setDefinition( diff --git a/tests/integration/IbexaTestKernelForTranslationTest.php b/tests/integration/IbexaTestKernelForTranslationTest.php new file mode 100644 index 00000000..5f0feb12 --- /dev/null +++ b/tests/integration/IbexaTestKernelForTranslationTest.php @@ -0,0 +1,18 @@ +