You are here

protected function TransformerFormatterTest::setUp in Facebook Instant Articles 8.2

Same name and namespace in other branches
  1. 3.x tests/src/Kernel/Plugin/Field/FieldFormatter/TransformerFormatterTest.php \Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatter\TransformerFormatterTest::setUp()

Overrides FormatterTestBase::setUp

File

tests/src/Kernel/Plugin/Field/FieldFormatter/TransformerFormatterTest.php, line 35

Class

TransformerFormatterTest
Tests the TransformerFormatter.

Namespace

Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatter

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installConfig([
    'text',
    'filter',
    'filter_test',
  ]);

  // Setup entity view display with default settings.
  $this->display
    ->setComponent($this->fieldName, [
    'type' => 'fbia_transformer',
    'settings' => [],
  ]);
  $this->display
    ->save();
}