You are here

protected function FieldDefaultTokenNodeTest::setUp in Field default token 8

Overrides FieldDefaultTokenKernelTestBase::setUp

File

tests/src/Kernel/FieldDefaultTokenNodeTest.php, line 35

Class

FieldDefaultTokenNodeTest
Tests that tokens in default values of node fields get replaced correctly.

Namespace

Drupal\Tests\field_default_token\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');
  NodeType::create([
    'type' => $this->bundle,
  ])
    ->save();
}