You are here

protected property ExistenceCheckingTest::$testEntityDefinitions in YAML Content 8

An array of pre-built entity definitions for test preparation.

@todo Move this into a more dynamic helper class.

Type: array

File

tests/src/Unit/ContentLoader/ExistenceCheckingTest.php, line 23

Class

ExistenceCheckingTest
Test the existence checking functionality of the ContentLoader class.

Namespace

Drupal\Tests\yaml_content\Unit\ContentLoader

Code

protected $testEntityDefinitions = [
  'node' => [
    'entity_keys' => [
      'id' => 'nid',
      'revision' => 'vid',
      'bundle' => 'type',
      'label' => 'title',
      'langcode' => 'langcode',
      'uuid' => 'uuid',
      'status' => 'status',
      'published' => 'status',
      'uid' => 'uid',
      'default_langcode' => 'default_langcode',
    ],
    'fields' => [
      'nid' => 'nid',
      'vid' => 'vid',
      'uid' => 'uid',
      'type' => 'type',
      'status' => 'status',
      'title' => 'title',
      'body' => 'body',
      'field_existing_field' => 'field_existing_field',
    ],
  ],
];