protected function MenuBlockCurrentLanguageTest::setUp in Menu block current language 8
Overrides ContentTranslationTestBase::setUp
File
- tests/
src/ Functional/ MenuBlockCurrentLanguageTest.php, line 70
Class
- MenuBlockCurrentLanguageTest
- Functional tests for menu_block_current_language.
Namespace
Drupal\Tests\menu_block_current_language\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->adminUser = $this
->drupalCreateUser([
'administer languages',
'access administration pages',
]);
$this
->drupalLogin($this->adminUser);
$edit = [
'language_interface[enabled][language-session]' => TRUE,
'language_interface[weight][language-session]' => -12,
];
$this
->drupalGet('/admin/config/regional/language/detection');
$this
->submitForm($edit, t('Save settings'));
$this->menuBlock = $this
->placeBlock('menu_block_current_language:main');
// Make sure we are not logged in.
$this
->drupalLogout();
}