function HelpTopicTwigLoaderTest::setUp

Same name in other branches
  1. 8.9.x core/modules/help_topics/tests/src/Unit/HelpTopicTwigLoaderTest.php \Drupal\Tests\help_topics\Unit\HelpTopicTwigLoaderTest::setUp()
  2. 10 core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php \Drupal\Tests\help\Unit\HelpTopicTwigLoaderTest::setUp()
  3. 11.x core/modules/help/tests/src/Unit/HelpTopicTwigLoaderTest.php \Drupal\Tests\help\Unit\HelpTopicTwigLoaderTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/help_topics/tests/src/Unit/HelpTopicTwigLoaderTest.php, line 35

Class

HelpTopicTwigLoaderTest
Unit test for the HelpTopicTwigLoader class.

Namespace

Drupal\Tests\help_topics\Unit

Code

protected function setUp() : void {
    $this->setUpVfs();
    $this->helpLoader = new HelpTopicTwigLoader('\\fake\\root\\path', $this->getHandlerMock('module'), $this->getHandlerMock('theme'));
}

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