protected function AnalyticsFormatterTest::setUp in Facebook Instant Articles 8.2
Same name and namespace in other branches
- 3.x tests/src/Kernel/Plugin/Field/FieldFormatter/AnalyticsFormatterTest.php \Drupal\Tests\fb_instant_articles\Kernel\Plugin\Field\FieldFormatter\AnalyticsFormatterTest::setUp()
Overrides FormatterTestBase::setUp
File
- tests/
src/ Kernel/ Plugin/ Field/ FieldFormatter/ AnalyticsFormatterTest.php, line 21
Class
- AnalyticsFormatterTest
- Test instant articles analytics 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_analytics',
'settings' => [],
]);
$this->display
->save();
}