public function ProxyServicesPassTest::testContainerWithoutLazyServices in Drupal 8
Same name and namespace in other branches
- 9 core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\ProxyServicesPassTest::testContainerWithoutLazyServices()
@covers ::process
File
- core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ ProxyServicesPassTest.php, line 36
Class
- ProxyServicesPassTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjection\CompilerCode
public function testContainerWithoutLazyServices() {
$container = new ContainerBuilder();
$container
->register('plugin_cache_clearer', 'Drupal\\Core\\Plugin\\CachedDiscoveryClearer');
$this->proxyServicesPass
->process($container);
$this
->assertCount(2, $container
->getDefinitions());
$this
->assertEquals('Drupal\\Core\\Plugin\\CachedDiscoveryClearer', $container
->getDefinition('plugin_cache_clearer')
->getClass());
}