You are here

protected function DrupalSelenium2DriverTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 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() {
  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',
  ]));
}