protected function FeedsItemImportedFormatterTest::setUp in Feeds 8.3
Overrides FeedsItemFormatterTestBase::setUp
File
- tests/
src/ Functional/ Plugin/ Field/ FieldFormatter/ FeedsItemImportedFormatterTest.php, line 15
Class
- FeedsItemImportedFormatterTest
- Tests feeds_item_imported field formatter.
Namespace
Drupal\Tests\feeds\Functional\Plugin\Field\FieldFormatterCode
protected function setUp() {
parent::setUp();
// Set display mode for feeds_item to feeds_item_imported on article content
// type.
$this->container
->get('entity_display.repository')
->getViewDisplay('node', 'article', 'default')
->setComponent('feeds_item', [
'type' => 'feeds_item_imported',
'weight' => 1,
])
->save();
}