You are here

protected function BlockFieldFormatterTest::setUp in Block field 8

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/BlockFieldFormatterTest.php, line 26

Class

BlockFieldFormatterTest
Tests the formatters functionality.

Namespace

Drupal\Tests\block_field\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installConfig([
    'user',
  ]);

  // Add a block field to the test entity.
  $this
    ->installEntitySchema('entity_test');
  $this
    ->createBlockField('entity_test', 'entity_test', 'field_test', 'Field test', 'default', [], FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
}