function OptionsFieldUIAllowedValuesTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/options/tests/src/FunctionalJavascript/OptionsFieldUIAllowedValuesTest.php, line 67

Class

OptionsFieldUIAllowedValuesTest
Tests the Options field allowed values UI functionality.

Namespace

Drupal\Tests\options\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    // Create test user.
    $admin_user = $this->drupalCreateUser([
        'bypass node access',
        'administer node fields',
        'administer node display',
    ]);
    $this->drupalLogin($admin_user);
    $type = $this->drupalCreateContentType([
        'type' => 'plan',
    ]);
    $this->type = $type->id();
    $this->nodeFormPath = 'node/add/' . $this->type;
}

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