File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
tests/Unit/DependencyInjection Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 2626use Symfony \Component \DependencyInjection \Exception \RuntimeException ;
2727use Symfony \Component \DependencyInjection \ParameterBag \EnvPlaceholderParameterBag ;
2828use Symfony \Component \DependencyInjection \Reference ;
29+ use Symfony \Component \ExpressionLanguage \ExpressionLanguage ;
2930use Symfony \Component \HttpKernel \Controller \ControllerResolverInterface ;
3031use Symfony \Component \Routing \Router ;
3132
@@ -507,6 +508,20 @@ public function testConfigLoadCacheControlExpressionWithOverriddenExpressionLang
507508 );
508509 }
509510
511+ public function testContainerCompilesWithCacheControlExpressionConfig (): void
512+ {
513+ $ config = $ this ->getCacheControlExpressionFullConfig ();
514+
515+ $ container = $ this ->createContainer ();
516+ $ this ->extension ->load ([$ config ], $ container );
517+
518+ $ container ->addDefinitions (['app.expression_language ' => new Definition (ExpressionLanguage::class)]);
519+
520+ $ container ->compile ();
521+
522+ $ this ->expectNotToPerformAssertions ();
523+ }
524+
510525 /**
511526 * Check if comma separated strings are parsed as expected.
512527 */
You can’t perform that action at this time.
0 commit comments