You are here

protected function ModulesListFormWebTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/system/tests/src/Functional/Form/ModulesListFormWebTest.php, line 28

Class

ModulesListFormWebTest
Tests \Drupal\system\Form\ModulesListForm.

Namespace

Drupal\Tests\system\Functional\Form

Code

protected function setUp() : void {
  parent::setUp();
  \Drupal::state()
    ->set('system_test.module_hidden', FALSE);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer modules',
    'administer permissions',
  ]));
}