protected function PathUnitTestBase::setUp in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Tests/Path/PathUnitTestBase.php \Drupal\system\Tests\Path\PathUnitTestBase::setUp()
Performs setup tasks before each individual test method is run.
Overrides KernelTestBase::setUp
File
- core/
modules/ system/ src/ Tests/ Path/ PathUnitTestBase.php, line 23 - Contains \Drupal\system\Tests\Path\PathUnitTestBase.
Class
- PathUnitTestBase
- Base class for Path/URL alias integration tests.
Namespace
Drupal\system\Tests\PathCode
protected 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('router.path_roots', array(
'user',
'admin',
));
}