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