You are here

protected function HtmlTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::setUp()
  2. 9 core/tests/Drupal/Tests/Component/Utility/HtmlTest.php \Drupal\Tests\Component\Utility\HtmlTest::setUp()

File

core/tests/Drupal/Tests/Component/Utility/HtmlTest.php, line 23

Class

HtmlTest
Tests \Drupal\Component\Utility\Html.

Namespace

Drupal\Tests\Component\Utility

Code

protected function setUp() : void {
  parent::setUp();
  $property = new \ReflectionProperty('Drupal\\Component\\Utility\\Html', 'seenIdsInit');
  $property
    ->setAccessible(TRUE);
  $property
    ->setValue(NULL);
}