public function FeedsParaMapperNestedMappingTestCase::testFieldsAvailable in Feeds Paragraphs 7
Test the user can see paragraphs fields in fields mapping.
File
- tests/
mapping.test, line 64 - Contains MappingTestCase.
Class
- FeedsParaMapperNestedMappingTestCase
- Tests mapping to a nested Paragraphs field.
Code
public function testFieldsAvailable() {
foreach ($this->bundles[0]['fields'] as $field) {
$bundle_field = 'field_' . $field['name'];
$this
->drupalGet('admin/structure/feeds/' . $this->importer . '/mapping');
$message = format_string("The Paragraphs bundle field @field is found.", array(
"@field" => $bundle_field,
));
$this
->assertText($bundle_field, $message, "Mapping");
}
}