function 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
Class
- BackendCompilerPassTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\BackendCompilerPass[[api-linebreak]] @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjection\CompilerCode
public function testProcess($expected_class, ContainerBuilder $container) {
$this->backendPass
->process($container);
$this->assertEquals($expected_class, get_class($container->get('service')));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.