public function KernelTest::testInitializeBundles in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testInitializeBundles()
File
- vendor/
symfony/ http-kernel/ Tests/ KernelTest.php, line 611
Class
Namespace
Symfony\Component\HttpKernel\TestsCode
public function testInitializeBundles() {
$parent = $this
->getBundle(null, null, 'ParentABundle');
$child = $this
->getBundle(null, 'ParentABundle', 'ChildABundle');
// use test kernel so we can access getBundleMap()
$kernel = $this
->getKernelForTest(array(
'registerBundles',
));
$kernel
->expects($this
->once())
->method('registerBundles')
->will($this
->returnValue(array(
$parent,
$child,
)));
$kernel
->boot();
$map = $kernel
->getBundleMap();
$this
->assertEquals(array(
$child,
$parent,
), $map['ParentABundle']);
}