From d4e80087bb6b1efeba050a7d410e3a7882fc2eae Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Wed, 23 Sep 2026 08:40:08 +0200 Subject: [PATCH 1/4] IBX-12046: Set framework.property_info.with_constructor_extractor explicitly in the test kernel config --- src/contracts/Resources/config/framework.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/contracts/Resources/config/framework.yaml b/src/contracts/Resources/config/framework.yaml index 348740b..b62027c 100644 --- a/src/contracts/Resources/config/framework.yaml +++ b/src/contracts/Resources/config/framework.yaml @@ -10,3 +10,5 @@ framework: app: cache.adapter.array router: resource: '%ibexa.core.test.resource_dir%/config/routes.yaml' + property_info: + with_constructor_extractor: false From f38ffb8b5279e598b4374685eef61e920dcd9935 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Wed, 23 Sep 2026 08:40:12 +0200 Subject: [PATCH 2/4] IBX-12046: Configured Doctrine ORM native lazy objects in the test kernel config --- src/contracts/Resources/config/doctrine.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/contracts/Resources/config/doctrine.php b/src/contracts/Resources/config/doctrine.php index ba26a5f..bd980d8 100644 --- a/src/contracts/Resources/config/doctrine.php +++ b/src/contracts/Resources/config/doctrine.php @@ -23,5 +23,9 @@ 'logging' => false, 'use_savepoints' => true, ], + 'orm' => array_filter([ + 'controller_resolver' => ['auto_mapping' => false], + 'enable_native_lazy_objects' => \PHP_VERSION_ID >= 80400 ? true : null, + ], static fn ($v) => $v !== null), ]); }; From 843c6f0d170ed34a6ea5aace9bd739911cc1e3bd Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Wed, 23 Sep 2026 15:19:19 +0200 Subject: [PATCH 3/4] IBX-12046: Configured twig_component in the test kernel when TwigComponentBundle is registered Projects get anonymous_template_directory and defaults from the symfony/ux-twig-component Flex recipe; test kernels don't, so the bundle deprecates the missing options in every consumer that registers it. --- src/contracts/IbexaTestKernel.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/contracts/IbexaTestKernel.php b/src/contracts/IbexaTestKernel.php index c5eeccb..a03b983 100644 --- a/src/contracts/IbexaTestKernel.php +++ b/src/contracts/IbexaTestKernel.php @@ -183,6 +183,7 @@ public function registerContainerConfiguration(LoaderInterface $loader): void self::prepareIOServices($container); self::createPublicAliasesForServicesUnderTest($container); self::setUpTestLogger($container); + self::configureTwigComponent($container); }); } @@ -214,6 +215,22 @@ protected function loadSecurity(LoaderInterface $loader): void $loader->load(self::getResourcesPath() . '/config/security.yaml'); } + /** + * Projects get this configuration from the symfony/ux-twig-component Flex recipe; test kernels + * registering TwigComponentBundle need it too, or the bundle deprecates the missing options. + */ + private static function configureTwigComponent(ContainerBuilder $container): void + { + if (!$container->hasExtension('twig_component')) { + return; + } + + $container->loadFromExtension('twig_component', [ + 'anonymous_template_directory' => 'components/', + 'defaults' => [], + ]); + } + /** * @return iterable */ From 38d3f246d6416b5f2000393cf139b8b0d55db980 Mon Sep 17 00:00:00 2001 From: Dawid Parafinski Date: Thu, 24 Sep 2026 09:35:39 +0200 Subject: [PATCH 4/4] IBX-12046: Removed the deprecated dbal.use_savepoints option from the test kernel config DBAL 4 always nests transactions with savepoints and DoctrineBundle 2.x deprecates the option (DoctrineBundle 3, required by Symfony 8, removes it). Its deprecation fired while the container compiled, before FrameworkBundle::boot() sets DOCTRINE_DEPRECATIONS=trigger, so doctrine/deprecations cached its mode as "none" and every Doctrine deprecation in the test run stayed silent. Without it, Doctrine deprecations reach the PHPUnit deprecation gate. --- src/contracts/Resources/config/doctrine.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/contracts/Resources/config/doctrine.php b/src/contracts/Resources/config/doctrine.php index bd980d8..10378e8 100644 --- a/src/contracts/Resources/config/doctrine.php +++ b/src/contracts/Resources/config/doctrine.php @@ -21,7 +21,6 @@ 'dbal' => [ 'url' => '%env(DATABASE_URL)%', 'logging' => false, - 'use_savepoints' => true, ], 'orm' => array_filter([ 'controller_resolver' => ['auto_mapping' => false],