function TaggedHandlersPassTest::buildContainer

Same name and namespace in other branches
  1. 10 core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\TaggedHandlersPassTest::buildContainer()
  2. 9 core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\TaggedHandlersPassTest::buildContainer()
  3. 8.9.x core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\TaggedHandlersPassTest::buildContainer()
  4. main core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\TaggedHandlersPassTest::buildContainer()
16 calls to TaggedHandlersPassTest::buildContainer()
TaggedHandlersPassTest::testIdCollectorProcessRequiredHandlers in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
Tests a required consumer with no handlers.
TaggedHandlersPassTest::testProcess in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
Tests one consumer and two handlers.
TaggedHandlersPassTest::testProcessChildDefinition in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
Tests child handler with parent service.
TaggedHandlersPassTest::testProcessInterfaceMismatch in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
Tests interface validation in non-production environment.
TaggedHandlersPassTest::testProcessMissingInterface in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php
Tests consumer with missing interface in non-production environment.

... See full list

File

core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php, line 23

Class

TaggedHandlersPassTest
Tests Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass.

Namespace

Drupal\Tests\Core\DependencyInjection\Compiler

Code

protected function buildContainer($environment = 'dev') : ContainerBuilder {
  $container = new ContainerBuilder();
  $container->setParameter('kernel.environment', $environment);
  return $container;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.