You are here

public function KernelTest::testBootSetsTheContainerToTheBundles in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-kernel/Tests/KernelTest.php \Symfony\Component\HttpKernel\Tests\KernelTest::testBootSetsTheContainerToTheBundles()

File

vendor/symfony/http-kernel/Tests/KernelTest.php, line 66

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

public function testBootSetsTheContainerToTheBundles() {
  $bundle = $this
    ->getMock('Symfony\\Component\\HttpKernel\\Bundle\\Bundle');
  $bundle
    ->expects($this
    ->once())
    ->method('setContainer');
  $kernel = $this
    ->getKernel(array(
    'initializeBundles',
    'initializeContainer',
    'getBundles',
  ));
  $kernel
    ->expects($this
    ->once())
    ->method('getBundles')
    ->will($this
    ->returnValue(array(
    $bundle,
  )));
  $kernel
    ->boot();
}