You are here

protected function FieldApiTest::setUp in Field Formatter Filter 8

Same name and namespace in other branches
  1. 2.0.x tests/src/Kernel/FieldApiTest.php \Drupal\Tests\field_formatter_filter\Kernel\FieldApiTest::setUp()

Overrides EntityKernelTestBase::setUp

File

tests/src/Kernel/FieldApiTest.php, line 40

Class

FieldApiTest
Tests applying the filter formatter to a node.

Namespace

Drupal\Tests\field_formatter_filter\Kernel

Code

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

  // Need some normal expectations to be present.
  // We require 'node' in order to run NodeType::create()
  $this
    ->installEntitySchema('node');

  // Presumably 'user' is assumed a lot.
  $this
    ->installEntitySchema('user');

  // 'system' provide a date_format that we need when rendering later.
  $this
    ->installConfig([
    'system',
    'field',
    'node',
    'user',
  ]);

  // Need to mock more bootstrap stuff.
  $this
    ->createTextFormats();
}