You are here

public function NameFieldTest::setUp in Name Field 8

Overrides NameTestBase::setUp

File

tests/src/Functional/NameFieldTest.php, line 31

Class

NameFieldTest
Various tests on creating a name field on a node.

Namespace

Drupal\Tests\name\Functional

Code

public function setUp() {
  parent::setUp();

  // Create content-type: page.
  $page = NodeType::create([
    'type' => 'page',
    'name' => 'Basic page',
  ]);
  $page
    ->save();
}