function PathRootsSubscriberTest::setUp
Same name and namespace in other branches
- 8.9.x core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest::setUp()
- 10 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 34
Class
- PathRootsSubscriberTest
- @coversDefaultClass <a href="/api/drupal/core%21lib%21Drupal%21Core%21EventSubscriber%21PathRootsSubscriber.php/class/PathRootsSubscriber/9" title="Provides all available first bits of all route paths." class="local">\Drupal\Core\EventSubscriber\PathRootsSubscriber</a> @group EventSubscriber
Namespace
Drupal\Tests\Core\EventSubscriberCode
protected function setUp() : void {
$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.