You are here

protected function CopyrightFormatterTest::setUp in Facebook Instant Articles 3.x

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

Overrides FormatterTestBase::setUp

File

tests/src/Kernel/Plugin/Field/FieldFormatter/CopyrightFormatterTest.php, line 21

Class

CopyrightFormatterTest
Tests the CopyrightFormatter.

Namespace

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

Code

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

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