protected function ParagraphFormatterTest::setUp in Facebook Instant Articles 3.x
Same name and namespace in other branches
- 8.2 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\FieldFormatterCode
protected function setUp() : void {
parent::setUp();
$this->display
->setComponent($this->fieldName, [
'type' => 'fbia_paragraph',
'settings' => [],
]);
$this->display
->save();
}