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