function LocalePathTest::setUp
Same name in other branches
- 9 core/modules/locale/tests/src/Functional/LocalePathTest.php \Drupal\Tests\locale\Functional\LocalePathTest::setUp()
- 8.9.x core/modules/locale/tests/src/Functional/LocalePathTest.php \Drupal\Tests\locale\Functional\LocalePathTest::setUp()
- 11.x core/modules/locale/tests/src/Functional/LocalePathTest.php \Drupal\Tests\locale\Functional\LocalePathTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ locale/ tests/ src/ Functional/ LocalePathTest.php, line 35
Class
- LocalePathTest
- Tests you can configure a language for individual URL aliases.
Namespace
Drupal\Tests\locale\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$this->config('system.site')
->set('page.front', '/node')
->save();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.