function MediaSettingsTest::setUp

Same name in other branches
  1. 9 core/modules/media/tests/src/Functional/MediaSettingsTest.php \Drupal\Tests\media\Functional\MediaSettingsTest::setUp()
  2. 8.9.x core/modules/media/tests/src/Functional/MediaSettingsTest.php \Drupal\Tests\media\Functional\MediaSettingsTest::setUp()
  3. 11.x core/modules/media/tests/src/Functional/MediaSettingsTest.php \Drupal\Tests\media\Functional\MediaSettingsTest::setUp()

Overrides MediaFunctionalTestTrait::setUp

File

core/modules/media/tests/src/Functional/MediaSettingsTest.php, line 24

Class

MediaSettingsTest
Testing the media settings.

Namespace

Drupal\Tests\media\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalLogin($this->createUser([
        'administer site configuration',
        'administer media',
    ]));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.