You are here

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

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

Overrides FormatterTestBase::setUp

File

tests/src/Kernel/Plugin/Field/FieldFormatter/VideoFormatterTest.php, line 36

Class

VideoFormatterTest
Tests for the VideoFormatter.

Namespace

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

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('file');
  $this
    ->installSchema('file', [
    'file_usage',
  ]);

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