function UpgradeTest::getEntityCounts

Same name in this branch
  1. 9 core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d7/UpgradeTest.php \Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d7\UpgradeTest::getEntityCounts()
Same name and namespace in other branches
  1. 10 core/modules/statistics/tests/src/Functional/migrate_drupal/d6/UpgradeTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d6\UpgradeTest::getEntityCounts()
  2. 10 core/modules/statistics/tests/src/Functional/migrate_drupal/d7/UpgradeTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d7\UpgradeTest::getEntityCounts()
  3. 11.x core/modules/statistics/tests/src/Functional/migrate_drupal/d6/UpgradeTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d6\UpgradeTest::getEntityCounts()
  4. 11.x core/modules/statistics/tests/src/Functional/migrate_drupal/d7/UpgradeTest.php \Drupal\Tests\statistics\Functional\migrate_drupal\d7\UpgradeTest::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 UpgradeTest::getEntityCounts()
UpgradeTest::testUpgrade in core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d6/UpgradeTest.php
Executes an upgrade.

File

core/modules/aggregator/tests/src/Functional/migrate_drupal_ui/d6/UpgradeTest.php, line 60

Class

UpgradeTest
Tests Drupal 6 upgrade using the migrate UI.

Namespace

Drupal\Tests\aggregator\Functional\migrate_drupal_ui\d6

Code

protected function getEntityCounts() {
  return [
    'aggregator_item' => 1,
    'aggregator_feed' => 1,
    'block' => 36,
    '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' => 6,
    '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,
    'search_page' => 2,
    'shortcut' => 2,
    'shortcut_set' => 1,
    'action' => 33,
    'menu' => 8,
    'path_alias' => 8,
    'taxonomy_term' => 15,
    'taxonomy_vocabulary' => 7,
    'tour' => 6,
    'user' => 7,
    'user_role' => 7,
    'menu_link_content' => 9,
    'view' => 16,
    'date_format' => 12,
    'entity_form_display' => 31,
    'entity_form_mode' => 1,
    'entity_view_display' => 61,
    'entity_view_mode' => 14,
    'base_field_override' => 41,
  ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.