protected function MediaLibraryDisplayModeTest::setUp in Drupal 9
Same name and namespace in other branches
- 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\FunctionalCode
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',
]));
}