You are here

public function StackedKernelPassTest::testProcessWithHttpKernel in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/StackedKernelPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\StackedKernelPassTest::testProcessWithHttpKernel()
  2. 10 core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/StackedKernelPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\StackedKernelPassTest::testProcessWithHttpKernel()

@covers ::process

File

core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/StackedKernelPassTest.php, line 81

Class

StackedKernelPassTest
@coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\StackedKernelPass @group DependencyInjection

Namespace

Drupal\Tests\Core\DependencyInjection\Compiler

Code

public function testProcessWithHttpKernel() {
  $kernel = new Definition('Symfony\\Component\\HttpKernel\\HttpKernelInterface');
  $this->containerBuilder
    ->setDefinition('http_kernel', $kernel);
  $this->stackedKernelPass
    ->process($this->containerBuilder);
  $unprocessed_kernel = $this->containerBuilder
    ->getDefinition('http_kernel');
  $this
    ->assertSame($kernel, $unprocessed_kernel);
  $this
    ->assertSame($kernel
    ->getArguments(), $unprocessed_kernel
    ->getArguments());
}