public function ProxyServicesPassTest::testContainerWithLazyServicesWithoutProxyClass 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::testContainerWithLazyServicesWithoutProxyClass()
@covers ::process
File
- core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ ProxyServicesPassTest.php, line 69
Class
- ProxyServicesPassTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjection\CompilerCode
public function testContainerWithLazyServicesWithoutProxyClass() {
$container = new ContainerBuilder();
$container
->register('path.current', CurrentPathStack::class)
->setLazy(TRUE);
$this
->expectException(InvalidArgumentException::class);
$this->proxyServicesPass
->process($container);
}