function DateRangeFieldTest::setUp

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

Overrides BrowserTestBase::setUp

File

core/modules/datetime_range/tests/src/FunctionalJavascript/DateRangeFieldTest.php, line 33

Class

DateRangeFieldTest
Tests Daterange field.

Namespace

Drupal\Tests\datetime_range\FunctionalJavascript

Code

protected function setUp() : void {
    parent::setUp();
    $this->drupalLogin($this->drupalCreateUser([
        'view test entity',
        'administer entity_test content',
        'administer content types',
        'administer node fields',
        'administer node display',
        'bypass node access',
        'administer entity_test fields',
    ]));
}

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