protected function ListFormatterTest::setUp in Facebook Instant Articles 8.2
Same name and namespace in other branches
- 3.x tests/src/Kernel/Plugin/Field/FieldFormatter/ListFormatterTest.php \Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatter\ListFormatterTest::setUp()
Overrides FormatterTestBase::setUp
File
- tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ ListFormatterTest.php, line 20
Class
- ListFormatterTest
- Tests the instant article list field formatter.
Namespace
Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatterCode
protected function setUp() : void {
parent::setUp();
// Setup entity view display with default settings.
$this->display
->setComponent($this->fieldName, [
'type' => 'fbia_list',
'settings' => [],
]);
$this->display
->save();
}