You are here

protected function EmailTestCase::getInstances in Microdata 7

Implements MicrodataFieldTestCase::getInstances().

Overrides MicrodataFieldTestCase::getInstances

File

modules/email/email.test, line 69
Tests for Email module.

Class

EmailTestCase
Test Email module microdata placement.

Code

protected function getInstances() {

  // Create instances for the field collection and for the field group.
  $instances = array();
  foreach ($this->fieldFormatterTypes as $type) {
    $instances[] = array(
      'field_name' => $type,
      'entity_type' => $this->entityType,
      'bundle' => $this->bundleType,
      'display' => array(
        'default' => array(
          'label' => 'hidden',
          'type' => $type,
        ),
      ),
    );
  }
  return $instances;
}