function LocalePathTest::setUp

Same name and namespace in other branches
  1. 8.9.x core/modules/locale/tests/src/Functional/LocalePathTest.php \Drupal\Tests\locale\Functional\LocalePathTest::setUp()
  2. 10 core/modules/locale/tests/src/Functional/LocalePathTest.php \Drupal\Tests\locale\Functional\LocalePathTest::setUp()
  3. 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\Functional

Code

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.