You are here

protected function AdminPathEntityConverterLanguageTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/language/tests/src/Functional/AdminPathEntityConverterLanguageTest.php \Drupal\Tests\language\Functional\AdminPathEntityConverterLanguageTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/language/tests/src/Functional/AdminPathEntityConverterLanguageTest.php, line 22

Class

AdminPathEntityConverterLanguageTest
Test administration path based conversion of entities.

Namespace

Drupal\Tests\language\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $permissions = [
    'access administration pages',
    'administer site configuration',
  ];
  $this
    ->drupalLogin($this
    ->drupalCreateUser($permissions));
  ConfigurableLanguage::createFromLangcode('es')
    ->save();
}