You are here

protected function MediaLibraryDisplayModeTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 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',
  ]));
}