You are here

protected function FeedsParaMapperUpdatingTestCase::testMultiValuedUpdate in Feeds Paragraphs 7

Test importing nodes with multi-valued paragraphs fields.

See also

\FeedsParaMapperWebTestCase::multiImport()

File

tests/importing.test, line 254
Contains ImportingTestCase.

Class

FeedsParaMapperUpdatingTestCase
Tests updating Paragraphs fields values.

Code

protected function testMultiValuedUpdate() {
  $expected_values = array(
    'field_description' => array(
      'text 5',
      'text 6',
      'text 7',
      'text 8',
      'text 9',
      'text 10',
    ),
    'field_image' => array(
      array(
        'image 5 alt',
        'image 5 title',
        'public:///image.png',
      ),
      array(
        'image 6 alt',
        'image 6 title',
        'public:///image.png',
      ),
      array(
        'image 7 alt',
        'image 7 title',
        'public:///image.png',
      ),
      array(
        'image 8 alt',
        'image 8 title',
        'public:///image.png',
      ),
    ),
  );
  parent::multiImport($expected_values, TRUE);
}