function DrupalSelenium2DriverTest::setUp

Same name in other branches
  1. 8.9.x core/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php \Drupal\FunctionalJavascriptTests\Tests\DrupalSelenium2DriverTest::setUp()
  2. 10 core/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php \Drupal\FunctionalJavascriptTests\Tests\DrupalSelenium2DriverTest::setUp()
  3. 11.x core/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php \Drupal\FunctionalJavascriptTests\Tests\DrupalSelenium2DriverTest::setUp()

Overrides BrowserTestBase::setUp

File

core/tests/Drupal/FunctionalJavascriptTests/Tests/DrupalSelenium2DriverTest.php, line 34

Class

DrupalSelenium2DriverTest
Tests the DrupalSelenium2Driver methods.

Namespace

Drupal\FunctionalJavascriptTests\Tests

Code

protected function setUp() : void {
    parent::setUp();
    $storage_settings = [
        'cardinality' => 3,
    ];
    $this->createFileField('field_file', 'entity_test', 'entity_test', $storage_settings);
    $this->drupalLogin($this->drupalCreateUser([
        'administer entity_test content',
        'access content',
    ]));
}

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