function DefaultValueWidgetTest::setUp

Same name in other branches
  1. 10 core/modules/field_ui/tests/src/FunctionalJavascript/DefaultValueWidgetTest.php \Drupal\Tests\field_ui\FunctionalJavascript\DefaultValueWidgetTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/field_ui/tests/src/FunctionalJavascript/DefaultValueWidgetTest.php, line 38

Class

DefaultValueWidgetTest
Tests the default value widget in Field UI.

Namespace

Drupal\Tests\field_ui\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    // Create a Content type and two test nodes.
    $this->createContentType([
        'type' => 'test_content',
    ]);
    $user = $this->drupalCreateUser([
        'access content',
        'administer content types',
        'administer node fields',
    ]);
    $this->drupalLogin($user);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.