You are here

protected function StringFieldTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/field/tests/src/Functional/String/StringFieldTest.php \Drupal\Tests\field\Functional\String\StringFieldTest::setUp()

Overrides BrowserTestBase::setUp

1 call to StringFieldTest::setUp()
TextFieldTest::setUp in core/modules/text/tests/src/Functional/TextFieldTest.php
1 method overrides StringFieldTest::setUp()
TextFieldTest::setUp in core/modules/text/tests/src/Functional/TextFieldTest.php

File

core/modules/field/tests/src/Functional/String/StringFieldTest.php, line 37

Class

StringFieldTest
Tests the creation of string fields.

Namespace

Drupal\Tests\field\Functional\String

Code

protected function setUp() {
  parent::setUp();
  $this->webUser = $this
    ->drupalCreateUser([
    'view test entity',
    'administer entity_test content',
    'access content',
  ]);
  $this
    ->drupalLogin($this->webUser);
}