You are here

public function FeedsParaMapperMappingTestCase::testFieldsAvailable in Feeds Paragraphs 7

Test the user can see paragraphs fields in fields mapping.

File

tests/mapping.test, line 27
Contains MappingTestCase.

Class

FeedsParaMapperMappingTestCase
Tests mapping a single value to a Paragraphs field.

Code

public function testFieldsAvailable() {
  foreach ($this->bundles[0]['fields'] as $field) {
    $bundle_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");
  }
}