You are here

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

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

Overrides FormatterTestBase::setUp

File

tests/src/Kernel/Plugin/Field/FieldFormatter/CreditsFormatterTest.php, line 19

Class

CreditsFormatterTest
Tests the CreditsFormatter.

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_credits',
    'settings' => [],
  ]);
  $this->display
    ->save();
}