You are here

public function NameTestBase::setUp in Name Field 8

Overrides BrowserTestBase::setUp

4 calls to NameTestBase::setUp()
NameFieldTest::setUp in tests/src/Functional/NameFieldTest.php
NameNodeTokenReplaceTest::setUp in tests/src/Functional/NameNodeTokenReplaceTest.php
NameOptionsProviderTest::setUp in tests/src/Functional/NameOptionsProviderTest.php
NameWidgetTest::setUp in tests/src/Functional/NameWidgetTest.php
4 methods override NameTestBase::setUp()
NameFieldTest::setUp in tests/src/Functional/NameFieldTest.php
NameNodeTokenReplaceTest::setUp in tests/src/Functional/NameNodeTokenReplaceTest.php
NameOptionsProviderTest::setUp in tests/src/Functional/NameOptionsProviderTest.php
NameWidgetTest::setUp in tests/src/Functional/NameWidgetTest.php

File

tests/src/Functional/NameTestBase.php, line 46

Class

NameTestBase
Helper test class with some added functions for testing.

Namespace

Drupal\Tests\name\Functional

Code

public function setUp() {
  parent::setUp();
  $this->webUser = $this
    ->drupalCreateUser([]);
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer site configuration',
    'administer content types',
    'access content',
    'access administration pages',
    'administer node fields',
  ]);
}