You are here

protected function ViewModeTest::setUp in Zircon Profile 8.0

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

Overrides MigrateSqlSourceTestCase::setUp

File

core/modules/node/tests/src/Unit/Plugin/migrate/source/d6/ViewModeTest.php, line 51
Contains \Drupal\Tests\node\Unit\Plugin\migrate\source\d6\ViewModeTest.

Class

ViewModeTest
Tests D6 view mode source plugin.

Namespace

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

Code

protected function setUp() {
  $this->databaseContents['content_node_field_instance'][] = array(
    'display_settings' => serialize(array(
      'weight' => '31',
      'parent' => '',
      'label' => array(
        'format' => 'above',
      ),
      'teaser' => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      'full' => array(
        'format' => 'default',
        'exclude' => 0,
      ),
      4 => array(
        'format' => 'default',
        'exclude' => 0,
      ),
    )),
  );
  parent::setUp();
}