You are here

protected function MigrateUpgradeEckTest::getEntityCounts in Entity Construction Kit (ECK) 8

Gets the expected number of entities per entity type after migration.

Return value

int[] An array of expected counts keyed by entity type ID.

Overrides MigrateUpgradeTestBase::getEntityCounts

1 call to MigrateUpgradeEckTest::getEntityCounts()
MigrateUpgradeEckTest::testMigrateUpgrade in tests/src/Functional/MigrateUpgradeEckTest.php
Tests the migrate upgrade review form and upgrade process.

File

tests/src/Functional/MigrateUpgradeEckTest.php, line 199

Class

MigrateUpgradeEckTest
Tests ECK upgrade using the migrate UI.

Namespace

Drupal\Tests\eck\Functional

Code

protected function getEntityCounts() {
  return [
    'action' => 19,
    'base_field_override' => 1,
    'block' => 23,
    'block_content' => 0,
    'block_content_type' => 1,
    'comment' => 0,
    'comment_type' => 2,
    'complex_entity' => 5,
    'complex_entity_type' => 2,
    'configurable_language' => 4,
    'contact_form' => 2,
    'contact_message' => 0,
    'date_format' => 11,
    'eck_entity_bundle' => 0,
    'eck_entity_type' => 2,
    'editor' => 2,
    'entity_form_display' => 9,
    'entity_form_mode' => 1,
    'entity_view_display' => 13,
    'entity_view_mode' => 12,
    'field_config' => 17,
    'field_storage_config' => 14,
    'file' => 1,
    'filter_format' => 4,
    'language_content_settings' => 4,
    'menu' => 5,
    'menu_link_content' => 0,
    'node' => 2,
    'node_type' => 2,
    'path_alias' => 0,
    'rdf_mapping' => 5,
    'search_page' => 2,
    'shortcut' => 2,
    'shortcut_set' => 1,
    'simple_entity' => 2,
    'simple_entity_type' => 1,
    'taxonomy_term' => 0,
    'taxonomy_vocabulary' => 1,
    'user' => 2,
    'user_role' => 3,
    'view' => 14,
  ];
}