function UpgradeTest::getEntityCounts

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

File

core/modules/statistics/tests/src/Functional/migrate_drupal/d6/UpgradeTest.php, line 55

Class

UpgradeTest
Tests Drupal 6 upgrade using the migrate UI.

Namespace

Drupal\Tests\statistics\Functional\migrate_drupal\d6

Code

protected function getEntityCounts() {
  return [
    'action' => 24,
    'base_field_override' => 18,
    'block' => 33,
    'block_content' => 1,
    'block_content_type' => 1,
    'comment' => 2,
    'comment_type' => 7,
    'configurable_language' => 5,
    'contact_form' => 2,
    'contact_message' => 0,
    'date_format' => 12,
    'editor' => 2,
    'entity_form_display' => 16,
    'entity_form_mode' => 1,
    'entity_view_display' => 25,
    'entity_view_mode' => 10,
    'field_config' => 25,
    'field_storage_config' => 14,
    'file' => 1,
    'filter_format' => 7,
    'image_style' => 4,
    'language_content_settings' => 9,
    'menu' => 8,
    'menu_link_content' => 1,
    'node' => 11,
    'node_type' => 7,
    'path_alias' => 0,
    'search_page' => 3,
    'shortcut' => 2,
    'shortcut_set' => 1,
    'taxonomy_term' => 1,
    'taxonomy_vocabulary' => 1,
    '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.