function ConfigExampleTest::setUp

Overrides ExamplesBrowserTestBase::setUp

File

modules/config_simple_example/tests/src/Functional/ConfigExampleTest.php, line 66

Class

ConfigExampleTest
Ensure that the form_api_example forms work properly.

Namespace

Drupal\Tests\form_api_example\Functional

Code

protected function setUp() : void {
  parent::setUp();
  // Login is required to access the config simple form.
  $this->adminUser = $this->drupalCreateUser($this->permissions);
  $this->drupalLogin($this->adminUser);
  // Enable the Spanish language.
  ConfigurableLanguage::createFromLangcode('es')->save();
}