function IconExtractorTest::setUp
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/Core/Theme/Icon/IconExtractorTest.php \Drupal\Tests\Core\Theme\Icon\IconExtractorTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ IconExtractorTest.php, line 32
Class
Namespace
Drupal\Tests\Core\Theme\IconCode
protected function setUp() : void {
parent::setUp();
$this->container = new ContainerBuilder();
$this->container
->set('string_translation', $this->createMock(TranslationInterface::class));
\Drupal::setContainer($this->container);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.