You are here

public function ProxyServicesPassTest::testContainerWithLazyServicesWithoutProxyClass in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\ProxyServicesPassTest::testContainerWithLazyServicesWithoutProxyClass()

@covers ::process

@expectedException \Symfony\Component\DependencyInjection\Exception\InvalidArgumentException

File

core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/ProxyServicesPassTest.php, line 75
Contains \Drupal\Tests\Core\DependencyInjection\Compiler\ProxyServicesPassTest.

Class

ProxyServicesPassTest
@coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\ProxyServicesPass @group DependencyInjection

Namespace

Drupal\Tests\Core\DependencyInjection\Compiler

Code

public function testContainerWithLazyServicesWithoutProxyClass() {
  $container = new ContainerBuilder();
  $container
    ->register('alias_whitelist', 'Drupal\\Core\\Path\\AliasWhitelist')
    ->setLazy(TRUE);
  $this->proxyServicesPass
    ->process($container);
}