You are here

protected function Upgrade7Test::getEntityCounts in Drupal 10

Same name in this branch
  1. 10 core/modules/rdf/tests/src/Functional/Migrate/Upgrade7Test.php \Drupal\Tests\rdf\Functional\Migrate\Upgrade7Test::getEntityCounts()
  2. 10 core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7Test::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 Upgrade7Test::getEntityCounts()
Upgrade7Test::testUpgrade in core/modules/rdf/tests/src/Functional/Migrate/Upgrade7Test.php
Executes all steps of migrations upgrade.

File

core/modules/rdf/tests/src/Functional/Migrate/Upgrade7Test.php, line 49

Class

Upgrade7Test
Tests Drupal 7 upgrade using the migrate UI.

Namespace

Drupal\Tests\rdf\Functional\Migrate

Code

protected function getEntityCounts() {
  return [
    'action' => 21,
    'base_field_override' => 2,
    'block' => 31,
    'block_content' => 0,
    'block_content_type' => 1,
    'comment' => 0,
    'comment_type' => 5,
    'contact_form' => 2,
    'contact_message' => 0,
    'date_format' => 12,
    'editor' => 2,
    'entity_form_display' => 11,
    'entity_form_mode' => 1,
    'entity_view_display' => 17,
    'entity_view_mode' => 10,
    'field_config' => 19,
    'field_storage_config' => 12,
    'file' => 0,
    'filter_format' => 5,
    'image_style' => 4,
    'menu' => 5,
    'menu_link_content' => 1,
    'node' => 0,
    'node_type' => 4,
    'path_alias' => 0,
    'rdf_mapping' => 8,
    'search_page' => 2,
    'shortcut' => 4,
    'shortcut_set' => 1,
    'taxonomy_term' => 1,
    'taxonomy_vocabulary' => 2,
    'tour' => 2,
    'user' => 2,
    'user_role' => 4,
    'view' => 14,
  ];
}