function IconExtractorTest::setUp
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ Theme/ Icon/ IconExtractorTest.php, line 30
Class
- IconExtractorTest
- @coversDefaultClass \Drupal\Core\Theme\Icon\Attribute\IconExtractor
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.