You are here

protected property FieldInstancePerViewModeTest::$expectedResults in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/field/tests/src/Unit/Plugin/migrate/source/d6/FieldInstancePerViewModeTest.php \Drupal\Tests\field\Unit\Plugin\migrate\source\d6\FieldInstancePerViewModeTest::expectedResults
  2. 8 core/modules/field/tests/src/Unit/Plugin/migrate/source/d7/FieldInstancePerViewModeTest.php \Drupal\Tests\field\Unit\Plugin\migrate\source\d7\FieldInstancePerViewModeTest::expectedResults
Same name and namespace in other branches
  1. 8.0 core/modules/field/tests/src/Unit/Plugin/migrate/source/d6/FieldInstancePerViewModeTest.php \Drupal\Tests\field\Unit\Plugin\migrate\source\d6\FieldInstancePerViewModeTest::expectedResults

Expected results after the source parsing.

Type: array

Overrides MigrateSqlSourceTestCase::$expectedResults

File

core/modules/field/tests/src/Unit/Plugin/migrate/source/d6/FieldInstancePerViewModeTest.php, line 28
Contains \Drupal\Tests\field\Unit\Plugin\migrate\source\d6\FieldInstancePerViewModeTest.

Class

FieldInstancePerViewModeTest
Tests D6 fields per view mode source plugin.

Namespace

Drupal\Tests\field\Unit\Plugin\migrate\source\d6

Code

protected $expectedResults = array(
  array(
    'entity_type' => 'node',
    'view_mode' => 4,
    'type_name' => 'article',
    'field_name' => 'field_test',
    'type' => 'text',
    'module' => 'text',
    'weight' => 1,
    'label' => 'above',
    'display_settings' => array(
      'weight' => 1,
      'parent' => '',
      'label' => array(
        'format' => 'above',
      ),
      4 => array(
        'format' => 'trimmed',
        'exclude' => 0,
      ),
    ),
    'widget_settings' => array(),
  ),
  array(
    'entity_type' => 'node',
    'view_mode' => 'teaser',
    'type_name' => 'story',
    'field_name' => 'field_test',
    'type' => 'text',
    'module' => 'text',
    'weight' => 2,
    'label' => 'above',
    'display_settings' => array(
      'weight' => 1,
      'parent' => '',
      'label' => array(
        'format' => 'above',
      ),
      'teaser' => array(
        'format' => 'trimmed',
        'exclude' => 0,
      ),
    ),
    'widget_settings' => array(),
  ),
);