You are here

protected function MicrodataCompoundFieldsTestCase::getMapping in Microdata 7

Implements MicrodataFieldTestCase::getMapping().

Overrides MicrodataFieldTestCase::getMapping

2 calls to MicrodataCompoundFieldsTestCase::getMapping()
MicrodataCompoundFieldsMarkupTestCase::testAttributesInMarkup in ./microdata.test
Tests the placement of attributes in field markup.
MicrodataCompoundFieldsUITestCase::testMicrodataUI in ./microdata.test
Tests the microdata UI for core fields.

File

./microdata.test, line 746
Tests for microdata.module.

Class

MicrodataCompoundFieldsTestCase

Code

protected function getMapping() {
  $mapping = array(
    $this->entityType => array(
      $this->bundleType => array(
        $this->addressfieldFieldName => array(
          '#is_item' => TRUE,
          '#itemtype' => array(
            'http://schema.org/PostalAddress',
          ),
          '#itemprop' => array(
            'address',
          ),
          $this->subfieldName => array(
            '#itemprop' => array(
              'addressLocality',
            ),
          ),
        ),
      ),
    ),
  );
  return $mapping;
}