You are here

protected function PathRootsSubscriberTest::setUp in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest::setUp()
  2. 9 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 \Drupal\Core\EventSubscriber\PathRootsSubscriber @group EventSubscriber

Namespace

Drupal\Tests\Core\EventSubscriber

Code

protected function setUp() : void {
  $this->state = $this
    ->createMock('Drupal\\Core\\State\\StateInterface');
  $this->pathRootsSubscriber = new PathRootsSubscriber($this->state);
}