protected function TaggedHandlersPassTest::buildContainer in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/TaggedHandlersPassTest.php \Drupal\Tests\Core\DependencyInjection\Compiler\TaggedHandlersPassTest::buildContainer()
12 calls to TaggedHandlersPassTest::buildContainer()
- TaggedHandlersPassTest::testProcess in core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ TaggedHandlersPassTest.php - Tests one consumer and two handlers.
- 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.
- TaggedHandlersPassTest::testProcessNoConsumers in core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ TaggedHandlersPassTest.php - Tests without any consumers.
- TaggedHandlersPassTest::testProcessNoPriorityAndExtraArguments in core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ TaggedHandlersPassTest.php - Tests consumer method with extra parameters and no priority.
File
- core/
tests/ Drupal/ Tests/ Core/ DependencyInjection/ Compiler/ TaggedHandlersPassTest.php, line 21 - Contains \Drupal\Tests\Core\DependencyInjection\Compiler\TaggedHandlersPassTest.
Class
- TaggedHandlersPassTest
- @coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass @group DependencyInjection
Namespace
Drupal\Tests\Core\DependencyInjection\CompilerCode
protected function buildContainer($environment = 'dev') {
$container = new ContainerBuilder();
$container
->setParameter('kernel.environment', $environment);
return $container;
}