You are here

protected function PathRootsSubscriberTest::setUp in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 39
Contains \Drupal\Tests\Core\EventSubscriber\PathRootsSubscriberTest.

Class

PathRootsSubscriberTest
@coversDefaultClass \Drupal\Core\EventSubscriber\PathRootsSubscriber @group EventSubscriber

Namespace

Drupal\Tests\Core\EventSubscriber

Code

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