public function ProxyServicesPassTest::testContainerWithoutLazyServices in Drupal 9
Same name and namespace in other branches
- 8 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());
}