public function FieldCollectionFieldSettingsTest::testNonParagraphFieldSettings in Paragraphs 8
Test leaving target_type empty for non-field_collection fields.
File
- tests/
src/ Unit/ migrate/ FieldCollectionFieldSettingsTest.php, line 40
Class
- FieldCollectionFieldSettingsTest
- Test the FieldCollectionFieldSettings Process Plugin.
Namespace
Drupal\Tests\paragraphs\Unit\migrateCode
public function testNonParagraphFieldSettings() {
$this->row
->expects($this
->any())
->method('getSourceProperty')
->with('type')
->willReturn('something_else');
$value = $this->plugin
->transform([], $this->migrateExecutable, $this->row, 'settings');
$this
->assertEmpty($value);
}