function 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::testUpgrade in core/
modules/ forum/ tests/ src/ Functional/ migrate_drupal/ d6/ Upgrade6Test.php  - Executes all steps of migrations upgrade.
 
File
- 
              core/
modules/ forum/ tests/ src/ Functional/ migrate_drupal/ d6/ Upgrade6Test.php, line 53  
Class
- Upgrade6Test
 - Tests Drupal 6 upgrade using the migrate UI.
 
Namespace
Drupal\Tests\forum\Functional\migrate_drupal\d6Code
protected function getEntityCounts() {
  return [
    'action' => 24,
    'base_field_override' => 22,
    'block' => 33,
    'block_content' => 1,
    'block_content_type' => 1,
    'comment' => 4,
    'comment_type' => 8,
    'contact_form' => 2,
    'contact_message' => 0,
    'date_format' => 12,
    'editor' => 2,
    'entity_form_display' => 18,
    'entity_form_mode' => 1,
    'entity_view_display' => 34,
    'entity_view_mode' => 11,
    'field_config' => 41,
    'field_storage_config' => 25,
    'file' => 1,
    'filter_format' => 7,
    'image_style' => 6,
    'menu' => 8,
    'menu_link_content' => 1,
    'node' => 3,
    'node_type' => 7,
    'path_alias' => 4,
    'search_page' => 3,
    'shortcut' => 2,
    'shortcut_set' => 1,
    'taxonomy_term' => 7,
    'taxonomy_vocabulary' => 4,
    'user' => 3,
    'user_role' => 4,
    'view' => 14,
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.