protected function KernelTest::getKernelMockForIsClassInActiveBundleTest

3 calls to KernelTest::getKernelMockForIsClassInActiveBundleTest()
KernelTest::testIsClassInActiveBundleFalse in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/KernelTest.php
KernelTest::testIsClassInActiveBundleFalseNoNamespace in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/KernelTest.php
KernelTest::testIsClassInActiveBundleTrue in drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Tests/KernelTest.php

File

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

Class

KernelTest

Namespace

Symfony\Component\HttpKernel\Tests

Code

protected function getKernelMockForIsClassInActiveBundleTest() {
  $bundle = new FooBarBundle();
  $kernel = $this
    ->getMockBuilder('Symfony\\Component\\HttpKernel\\Tests\\Fixtures\\KernelForTest')
    ->disableOriginalConstructor()
    ->setMethods(array(
    'getBundles',
  ))
    ->getMock();
  $kernel
    ->expects($this
    ->once())
    ->method('getBundles')
    ->will($this
    ->returnValue(array(
    $bundle,
  )));
  return $kernel;
}