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