function MediaLibraryDisplayModeTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php, line 40

Class

MediaLibraryDisplayModeTest
Tests that the Media Library automatically configures form/view modes.

Namespace

Drupal\Tests\media_library\Functional

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalLogin($this->drupalCreateUser([
        'access media overview',
        'administer media',
        'administer media fields',
        'administer media form display',
        'administer media display',
        'administer media types',
        'view media',
    ]));
}

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