protected function PathRootsSubscriberTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/Tests/Core/EventSubscriber/PathRootsSubscriberTest.php \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest::setUp()
- 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\EventSubscriberCode
protected function setUp() : void {
$this->state = $this
->createMock('Drupal\\Core\\State\\StateInterface');
$this->pathRootsSubscriber = new PathRootsSubscriber($this->state);
}