You are here

protected function FieldFormatterTest::setUp in Telephone Formatter 8

Overrides BrowserTestBase::setUp

File

tests/src/Functional/FieldFormatterTest.php, line 39

Class

FieldFormatterTest
Tests the creation of telephone fields.

Namespace

Drupal\Tests\telephone_formatter\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalCreateContentType([
    'type' => 'page',
  ]);
  $this->webUser = $this
    ->drupalCreateUser([
    'create page content',
    'edit own page content',
  ]);
  $this
    ->drupalLogin($this->webUser);
}