File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 20
20
use Symfony \Bundle \FrameworkBundle \Test \KernelTestCase ;
21
21
use Symfony \Component \Cache \Adapter \ApcuAdapter ;
22
22
use Symfony \Component \Config \Definition \Exception \InvalidConfigurationException ;
23
+ use Symfony \Component \DependencyInjection \Attribute \WhenNot ;
23
24
use Symfony \Component \HttpKernel \KernelInterface ;
24
25
25
26
class BundleInitializationTest extends KernelTestCase
@@ -279,6 +280,9 @@ private function bootWithConfig(array $configs): void
279
280
}
280
281
281
282
// hack to assert the version of the bundle
283
+ if (class_exists (WhenNot::class)) {
284
+ $ kernel ->addTestConfig (__DIR__ . '/Resources/config/base_sf72.yaml ' );
285
+ }
282
286
if (class_exists (ConsoleProfilerListener::class)) {
283
287
$ kernel ->addTestConfig (__DIR__ . '/Resources/config/base_sf64.yaml ' );
284
288
}
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