File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed
src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,23 @@ public function testInvalidValueTrustedProxies()
8686 ));
8787 }
8888
89+ public function testAssetsCanBeEnabled ()
90+ {
91+ $ processor = new Processor ();
92+ $ configuration = new Configuration (true );
93+ $ config = $ processor ->processConfiguration ($ configuration , array (array ('assets ' => null )));
94+
95+ $ defaultConfig = array (
96+ 'version ' => null ,
97+ 'version_format ' => '%%s?%%s ' ,
98+ 'base_path ' => '' ,
99+ 'base_urls ' => array (),
100+ 'packages ' => array (),
101+ );
102+
103+ $ this ->assertEquals ($ defaultConfig , $ config ['assets ' ]);
104+ }
105+
89106 protected static function getBundleDefaultConfig ()
90107 {
91108 return array (
@@ -145,13 +162,6 @@ protected static function getBundleDefaultConfig()
145162 'magic_call ' => false ,
146163 'throw_exception_on_invalid_index ' => false ,
147164 ),
148- 'assets ' => array (
149- 'version ' => null ,
150- 'version_format ' => '%%s?%%s ' ,
151- 'base_path ' => '' ,
152- 'base_urls ' => array (),
153- 'packages ' => array (),
154- ),
155165 );
156166 }
157167}
You can’t perform that action at this time.
0 commit comments