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