function MimeTypePassTest::buildContainer

1 call to MimeTypePassTest::buildContainer()
MimeTypePassTest::testProcessLegacy in core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/MimeTypePassTest.php
Tests backwards compatibility shim for MimeTypeGuesser interface changes.

File

core/tests/Drupal/Tests/Core/DependencyInjection/Compiler/MimeTypePassTest.php, line 20

Class

MimeTypePassTest
@coversDefaultClass \Drupal\Core\DependencyInjection\Compiler\MimeTypePass[[api-linebreak]] @group DependencyInjection @group legacy @runInSeparateProcess

Namespace

Drupal\Tests\Core\DependencyInjection\Compiler

Code

protected function buildContainer($environment = 'dev') {
  $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.