function PathRootsSubscriberTest::setUp
Same name in other branches
- 9 core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest::setUp()
- 8.9.x core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest::setUp()
- 11.x core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest::setUp()
Overrides UnitTestCase::setUp
File
-
core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ PathRootsSubscriberTest.php, line 36
Class
- PathRootsSubscriberTest
- @coversDefaultClass \Drupal\Core\EventSubscriber\PathRootsSubscriber @group EventSubscriber
Namespace
Drupal\Tests\Core\EventSubscriberCode
protected function setUp() : void {
parent::setUp();
$this->state = $this->createMock('Drupal\\Core\\State\\StateInterface');
$this->pathRootsSubscriber = new PathRootsSubscriber($this->state);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.