function MenuUiLanguageTest::setUp
Same name in other branches
- 8.9.x core/modules/menu_ui/tests/src/Functional/MenuUiLanguageTest.php \Drupal\Tests\menu_ui\Functional\MenuUiLanguageTest::setUp()
- 10 core/modules/menu_ui/tests/src/Functional/MenuUiLanguageTest.php \Drupal\Tests\menu_ui\Functional\MenuUiLanguageTest::setUp()
- 11.x core/modules/menu_ui/tests/src/Functional/MenuUiLanguageTest.php \Drupal\Tests\menu_ui\Functional\MenuUiLanguageTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ menu_ui/ tests/ src/ Functional/ MenuUiLanguageTest.php, line 41
Class
- MenuUiLanguageTest
- Tests for menu_ui language settings.
Namespace
Drupal\Tests\menu_ui\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->drupalLogin($this->drupalCreateUser([
'access administration pages',
'administer menu',
]));
// Add some custom languages.
foreach ([
'aa',
'bb',
'cc',
'cs',
] as $language_code) {
ConfigurableLanguage::create([
'id' => $language_code,
'label' => $this->randomMachineName(),
])
->save();
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.