You are here

protected function Upgrade6Test::getEntityCounts in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d6\Upgrade6Test::getEntityCounts()

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 Upgrade6Test::getEntityCounts()
Upgrade6Test::getEntityCountsIncremental in core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php
Gets expected number of entities per entity after incremental migration.

File

core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php, line 68

Class

Upgrade6Test
Tests Drupal 6 upgrade using the migrate UI.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d6

Code

protected function getEntityCounts() {
  return [
    'aggregator_item' => 1,
    'aggregator_feed' => 2,
    'block' => 34,
    'block_content' => 2,
    'block_content_type' => 1,
    'comment' => 8,
    // The 'standard' profile provides the 'comment' comment type, and the
    // migration creates 12 comment types, one per node type.
    'comment_type' => 14,
    'contact_form' => 5,
    'contact_message' => 0,
    'configurable_language' => 5,
    'editor' => 2,
    'field_config' => 103,
    'field_storage_config' => 71,
    'file' => 7,
    'filter_format' => 7,
    'image_style' => 6,
    'language_content_settings' => 15,
    'node' => 18,
    // The 'book' module provides the 'book' node type, and the migration
    // creates 12 node types.
    'node_type' => 14,
    'rdf_mapping' => 7,
    'search_page' => 2,
    'shortcut' => 2,
    'shortcut_set' => 1,
    'action' => 27,
    'menu' => 8,
    'path_alias' => 8,
    'taxonomy_term' => 15,
    'taxonomy_vocabulary' => 7,
    'tour' => 6,
    'user' => 7,
    'user_role' => 7,
    'menu_link_content' => 10,
    'view' => 16,
    'date_format' => 11,
    'entity_form_display' => 31,
    'entity_form_mode' => 1,
    'entity_view_display' => 61,
    'entity_view_mode' => 14,
    'base_field_override' => 41,
  ];
}