public function PathUnitTestBase::setUp

Sets up Drupal unit test environment.

Overrides DrupalUnitTestBase::setUp

See also

DrupalUnitTestBase::$modules

DrupalUnitTestBase

File

drupal/core/modules/system/lib/Drupal/system/Tests/Path/PathUnitTestBase.php, line 18
Contains Drupal\system\Tests\Path\PathUnitTestBase.

Class

PathUnitTestBase
Defines a base class for path unit testing.

Namespace

Drupal\system\Tests\Path

Code

public function setUp() {
  parent::setUp();
  $this->fixtures = new UrlAliasFixtures();

  // The alias whitelist expects that the menu path roots are set by a
  // menu router rebuild.
  \Drupal::state()
    ->set('menu_path_roots', array(
    'user',
    'admin',
  ));
}