You are here

protected function ParagraphFormatterTest::setUp in Facebook Instant Articles 8.2

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

Overrides FormatterTestBase::setUp

File

tests/src/Kernel/Plugin/Field/FieldFormatter/ParagraphFormatterTest.php, line 20

Class

ParagraphFormatterTest
Tests the instant article paragraph field formatter.

Namespace

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

Code

protected function setUp() : void {
  parent::setUp();
  $this->display
    ->setComponent($this->fieldName, [
    'type' => 'fbia_paragraph',
    'settings' => [],
  ]);
  $this->display
    ->save();
}