You are here

protected function LocalePathTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 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\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  $this
    ->config('system.site')
    ->set('page.front', '/node')
    ->save();
}