This repository was archived by the owner on Sep 16, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed
tests/Unit/DependencyInjection Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ public function getConfigTreeBuilder()
37
37
38
38
private function addBundlesSection (ArrayNodeDefinition $ root )
39
39
{
40
- $ bundles = $ root ->children ()->arrayNode ('bundles ' )->children ();
40
+ $ bundles = $ root ->children ()->arrayNode ('bundles ' )->isRequired ()-> children ();
41
41
42
42
foreach ($ this ->factories as $ factory ) {
43
43
$ config = $ bundles
Original file line number Diff line number Diff line change @@ -26,6 +26,25 @@ protected function getContainerExtensions()
26
26
);
27
27
}
28
28
29
+ /**
30
+ * @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
31
+ */
32
+ public function testThatBundlesAreConfigured ()
33
+ {
34
+ $ this ->container ->setParameter (
35
+ 'kernel.bundles ' ,
36
+ array (
37
+ 'CmfSeoBundle ' => true ,
38
+ 'CmfRoutingBundle ' => true ,
39
+ 'SonataDoctrinePHPCRAdminBundle ' => true ,
40
+ 'DoctrinePHPCRBundle ' => true ,
41
+ 'BurgovKeyValueFormBundle ' => true ,
42
+ )
43
+ );
44
+
45
+ $ this ->load ([]);
46
+ }
47
+
29
48
public function testSeoBundle ()
30
49
{
31
50
$ this ->container ->setParameter (
You can’t perform that action at this time.
0 commit comments