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\FunctionalCode
public function setUp() {
parent::setUp();
// Create content-type: page.
$page = NodeType::create([
'type' => 'page',
'name' => 'Basic page',
]);
$page
->save();
}