function ConfigNamesMapperTest::buildContainer

Builds the service container.

2 calls to ConfigNamesMapperTest::buildContainer()
ConfigNamesMapperTest::testGetBasePath in core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php
Tests ConfigNamesMapper::getBasePath().
ConfigNamesMapperTest::testGetOverviewPath in core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php
Tests ConfigNamesMapper::getOverviewPath().

File

core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php, line 135

Class

ConfigNamesMapperTest
Tests the functionality provided by the configuration names mapper.

Namespace

Drupal\Tests\config_translation\Unit

Code

protected function buildContainer() : void {
  $this->urlGenerator = $this->createMock(UrlGeneratorInterface::class);
  $container = new ContainerBuilder();
  $container->set('url_generator', $this->urlGenerator);
  \Drupal::setContainer($container);
}

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