File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 2020use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
2121use Symfony \Component \Cache \Adapter \ApcuAdapter ;
2222use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
23+ use Symfony \Component \DependencyInjection \Attribute \WhenNot ;
2324use Symfony \Component \HttpKernel \KernelInterface ;
2425
2526class BundleInitializationTest extends KernelTestCase
@@ -279,6 +280,9 @@ private function bootWithConfig(array $configs): void
279280 }
280281
281282 // hack to assert the version of the bundle
283+ if (class_exists (WhenNot::class)) {
284+ $ kernel ->addTestConfig (__DIR__ . '/Resources/config/base_sf72.yaml ' );
285+ }
282286 if (class_exists (ConsoleProfilerListener::class)) {
283287 $ kernel ->addTestConfig (__DIR__ . '/Resources/config/base_sf64.yaml ' );
284288 }
Original file line number Diff line number Diff line change 1+ framework :
2+ trusted_hosts : ' '
3+ trusted_proxies : ' '
4+ trusted_headers : ' '
5+ trust_x_sendfile_type_header : true
6+
You can’t perform that action at this time.
0 commit comments