function HtmlTest::setUp

File

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

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);
}

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