protected function LocalePathTest::setUp in Drupal 9
Same name and namespace in other branches
- 8 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();
}