8000 [FrameworkBundle] Fix a default config test case and add a new one fo… · symfony/symfony@4c26875 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4c26875

Browse files
committed
[FrameworkBundle] Fix a default config test case and add a new one for enabling assets.
1 parent b0f6a19 commit 4c26875

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)
0