function PathRootsSubscriberTest::setUp

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest::setUp()
  2. 8.9.x core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest::setUp()
  3. 10 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\EventSubscriber

Code

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.