function MediaLibraryDisplayModeTest::setUp
Same name in other branches
- 9 core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php \Drupal\Tests\media_library\Functional\MediaLibraryDisplayModeTest::setUp()
- 10 core/modules/media_library/tests/src/Functional/MediaLibraryDisplayModeTest.php \Drupal\Tests\media_library\Functional\MediaLibraryDisplayModeTest::setUp()
- 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\FunctionalCode
protected function setUp() {
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.