function IconTest::setUp

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Theme/Icon/IconTest.php \Drupal\Tests\Core\Theme\Icon\IconTest::setUp()

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/Theme/Icon/IconTest.php, line 36

Class

IconTest
Tests Drupal\Core\Render\Element\Icon.

Namespace

Drupal\Tests\Core\Theme\Icon

Code

protected function setUp() : void {
  parent::setUp();
  $this->container = new ContainerBuilder();
  \Drupal::setContainer($this->container);
}

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