function FieldUiIntegrationTest::setUp
Same name in other branches
- 8.9.x core/modules/media_library/tests/src/FunctionalJavascript/FieldUiIntegrationTest.php \Drupal\Tests\media_library\FunctionalJavascript\FieldUiIntegrationTest::setUp()
- 10 core/modules/media_library/tests/src/FunctionalJavascript/FieldUiIntegrationTest.php \Drupal\Tests\media_library\FunctionalJavascript\FieldUiIntegrationTest::setUp()
- 11.x core/modules/media_library/tests/src/FunctionalJavascript/FieldUiIntegrationTest.php \Drupal\Tests\media_library\FunctionalJavascript\FieldUiIntegrationTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ media_library/ tests/ src/ FunctionalJavascript/ FieldUiIntegrationTest.php, line 25
Class
- FieldUiIntegrationTest
- Tests field UI integration for media library widget.
Namespace
Drupal\Tests\media_library\FunctionalJavascriptCode
protected function setUp() : void {
parent::setUp();
// Create a user who can add media fields.
$user = $this->drupalCreateUser([
'access administration pages',
'administer node fields',
'administer node form display',
]);
$this->drupalLogin($user);
$this->drupalCreateContentType([
'type' => 'article',
]);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.