diff --git a/src/Integration/Symfony/Bundle/tests/Functional/BundleInitializationTest.php b/src/Integration/Symfony/Bundle/tests/Functional/BundleInitializationTest.php index 0fe522a71..13272ba48 100644 --- a/src/Integration/Symfony/Bundle/tests/Functional/BundleInitializationTest.php +++ b/src/Integration/Symfony/Bundle/tests/Functional/BundleInitializationTest.php @@ -20,6 +20,7 @@ use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\Cache\Adapter\ApcuAdapter; use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; +use Symfony\Component\DependencyInjection\Attribute\WhenNot; use Symfony\Component\HttpKernel\KernelInterface; class BundleInitializationTest extends KernelTestCase @@ -279,6 +280,9 @@ private function bootWithConfig(array $configs): void } // hack to assert the version of the bundle + if (class_exists(WhenNot::class)) { + $kernel->addTestConfig(__DIR__ . '/Resources/config/base_sf72.yaml'); + } if (class_exists(ConsoleProfilerListener::class)) { $kernel->addTestConfig(__DIR__ . '/Resources/config/base_sf64.yaml'); } diff --git a/src/Integration/Symfony/Bundle/tests/Functional/Resources/config/base_sf72.yaml b/src/Integration/Symfony/Bundle/tests/Functional/Resources/config/base_sf72.yaml new file mode 100644 index 000000000..72c43aa1f --- /dev/null +++ b/src/Integration/Symfony/Bundle/tests/Functional/Resources/config/base_sf72.yaml @@ -0,0 +1,6 @@ +framework: + trusted_hosts: '' + trusted_proxies: '' + trusted_headers: '' + trust_x_sendfile_type_header: true +