You are here

protected function FieldDefaultTokenKernelTestBase::setUp in Field default token 8

Overrides KernelTestBase::setUp

2 calls to FieldDefaultTokenKernelTestBase::setUp()
FieldDefaultTokenBasicTest::setUp in tests/src/Kernel/FieldDefaultTokenBasicTest.php
FieldDefaultTokenNodeTest::setUp in tests/src/Kernel/FieldDefaultTokenNodeTest.php
2 methods override FieldDefaultTokenKernelTestBase::setUp()
FieldDefaultTokenBasicTest::setUp in tests/src/Kernel/FieldDefaultTokenBasicTest.php
FieldDefaultTokenNodeTest::setUp in tests/src/Kernel/FieldDefaultTokenNodeTest.php

File

tests/src/Kernel/FieldDefaultTokenKernelTestBase.php, line 45

Class

FieldDefaultTokenKernelTestBase
Provides a common base class for kernel tests of Field Default Token module.

Namespace

Drupal\Tests\field_default_token\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema($this->entityTypeId);
  FieldStorageConfig::create([
    'field_name' => $this->fieldName,
    'entity_type' => $this->entityTypeId,
    'type' => 'string',
  ])
    ->save();
}