You are here

protected function NodeFilterTest::setUp in Field Formatter Filter 2.0.x

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

Derived with reference to from NodeImportCreateTest.

Overrides EntityKernelTestBase::setUp

File

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

Class

NodeFilterTest
Tests applying the filter formatter to a node.

Namespace

Drupal\Tests\field_formatter_filter\Kernel

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('user');

  // Need some normal expectations to be present.
  // 'system' provide a date_format that we need when rendering later.
  $this
    ->installConfig([
    'system',
  ]);
  $this
    ->createContentType([
    'type' => 'fff_test_type',
  ]);
}