function PathRootsSubscriberTest::setUp

Overrides UnitTestCase::setUp

File

core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php, line 39

Class

PathRootsSubscriberTest
Tests Drupal\Core\EventSubscriber\PathRootsSubscriber.

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.