function FieldUiIntegrationTest::setUp

Same name in other branches
  1. 9 core/modules/media_library/tests/src/FunctionalJavascript/FieldUiIntegrationTest.php \Drupal\Tests\media_library\FunctionalJavascript\FieldUiIntegrationTest::setUp()
  2. 10 core/modules/media_library/tests/src/FunctionalJavascript/FieldUiIntegrationTest.php \Drupal\Tests\media_library\FunctionalJavascript\FieldUiIntegrationTest::setUp()
  3. 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 20

Class

FieldUiIntegrationTest
Tests field UI integration for media library widget.

Namespace

Drupal\Tests\media_library\FunctionalJavascript

Code

protected function setUp() {
    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.