File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change 2121
2222class FOSRestExtension extends Extension
2323{
24+ /**
25+ * {@inheritdoc}
26+ */
27+ public function getConfiguration (array $ config , ContainerBuilder $ container )
28+ {
29+ return new Configuration ($ container ->getParameter ('kernel.debug ' ));
30+ }
31+
2432 /**
2533 * Loads the services based on your application configuration.
2634 *
Original file line number Diff line number Diff line change @@ -603,6 +603,13 @@ public static function getShowExceptionData()
603603 );
604604 }
605605
606+ public function testGetConfiguration ()
607+ {
608+ $ configuration = $ this ->extension ->getConfiguration (array (), $ this ->container );
609+
610+ $ this ->assertInstanceOf ('FOS\RestBundle\DependencyInjection\Configuration ' , $ configuration );
611+ }
612+
606613 /**
607614 * Assert that loader definition described properly.
608615 *
You can’t perform that action at this time.
0 commit comments