You are here

protected function RdfMappingResourceTestBase::getExpectedNormalizedEntity in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/rdf/tests/src/Functional/Rest/RdfMappingResourceTestBase.php \Drupal\Tests\rdf\Functional\Rest\RdfMappingResourceTestBase::getExpectedNormalizedEntity()
  2. 9 core/modules/rdf/tests/src/Functional/Rest/RdfMappingResourceTestBase.php \Drupal\Tests\rdf\Functional\Rest\RdfMappingResourceTestBase::getExpectedNormalizedEntity()

File

core/modules/rdf/tests/src/Functional/Rest/RdfMappingResourceTestBase.php, line 69

Class

RdfMappingResourceTestBase

Namespace

Drupal\Tests\rdf\Functional\Rest

Code

protected function getExpectedNormalizedEntity() {
  return [
    'bundle' => 'camelids',
    'dependencies' => [
      'config' => [
        'node.type.camelids',
      ],
      'module' => [
        'node',
      ],
    ],
    'fieldMappings' => [
      'title' => [
        'properties' => [
          'dc:title',
        ],
      ],
      'created' => [
        'properties' => [
          'dc:date',
          'dc:created',
        ],
        'datatype' => 'xsd:dateTime',
        'datatype_callback' => [
          'callable' => 'Drupal\\rdf\\CommonDataConverter::dateIso8601Value',
        ],
      ],
    ],
    'id' => 'node.camelids',
    'langcode' => 'en',
    'status' => TRUE,
    'targetEntityType' => 'node',
    'types' => [
      'sioc:Item',
      'foaf:Document',
    ],
    'uuid' => $this->entity
      ->uuid(),
  ];
}