You are here

public function BackendCompilerPassTest::testProcess in Drupal 8

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

Tests the process method.

@dataProvider providerTestProcess

@covers ::process

Parameters

string $expected_class: The expected used class.

\Symfony\Component\DependencyInjection\ContainerBuilder $container: The container.

File

core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/BackendCompilerPassTest.php, line 48
Contains \Drupal\Tests\Core\DependencyInjection\Compiler\BackendCompilerPassTest.

Class

BackendCompilerPassTest
@coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\BackendCompilerPass @group DependencyInjection

Namespace

Drupal\Tests\Core\DependencyInjection\Compiler

Code

public function testProcess($expected_class, ContainerBuilder $container) {
  $this->backendPass
    ->process($container);
  $this
    ->assertEquals($expected_class, get_class($container
    ->get('service')));
}