protected function FeedsParaMapperMultiValuedImportingTestCase::testMultiValuedImport in Feeds Paragraphs 7
Test importing nodes with multi-valued paragraphs fields.
See also
\FeedsParaMapperWebTestCase::multiImport()
File
- tests/
importing.test, line 190 - Contains ImportingTestCase.
Class
- FeedsParaMapperMultiValuedImportingTestCase
- Tests importing to a content type with a nested Paragraphs field.
Code
protected function testMultiValuedImport() {
$expected_values = array(
'field_description' => array(
'text 1',
'text 2',
'text 3',
'text 4',
),
'field_image' => array(
array(
'image 1 alt',
'image 1 title',
'public:///image.png',
),
array(
'image 2 alt',
'image 2 title',
'public:///image.png',
),
array(
'image 3 alt',
'image 3 title',
'public:///image.png',
),
array(
'image 4 alt',
'image 4 title',
'public:///image.png',
),
),
);
parent::multiImport($expected_values);
}