public function KernelTest::testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles

@expectedException \LogicException

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/KernelTest.php, line 623

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testInitializeBundlesThrowsExceptionWhenABundleIsDirectlyExtendedByTwoBundles() {
  $parent = $this
    ->getBundle(null, null, 'ParentCBundle');
  $child1 = $this
    ->getBundle(null, 'ParentCBundle', 'ChildC1Bundle');
  $child2 = $this
    ->getBundle(null, 'ParentCBundle', 'ChildC2Bundle');
  $kernel = $this
    ->getKernel();
  $kernel
    ->expects($this
    ->once())
    ->method('registerBundles')
    ->will($this
    ->returnValue(array(
    $parent,
    $child1,
    $child2,
  )));
  $kernel
    ->initializeBundles();
}