function Upgrade6Test::getEntityCounts

Same name in this branch
  1. 10 core/modules/forum/tests/src/Functional/migrate_drupal/d6/Upgrade6Test.php \Drupal\Tests\forum\Functional\migrate_drupal\d6\Upgrade6Test::getEntityCounts()
Same name in other branches
  1. 9 core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d6\Upgrade6Test::getEntityCounts()
  2. 8.9.x core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d6\Upgrade6Test::getEntityCounts()
  3. 11.x core/modules/forum/tests/src/Functional/migrate_drupal/d6/Upgrade6Test.php \Drupal\Tests\forum\Functional\migrate_drupal\d6\Upgrade6Test::getEntityCounts()
  4. 11.x core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d6\Upgrade6Test::getEntityCounts()

Overrides MigrateUpgradeTestBase::getEntityCounts

2 calls 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.
Upgrade6TestWithContentModeration::getEntityCounts in core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6TestWithContentModeration.php
Gets the expected number of entities per entity type after migration.
1 method overrides Upgrade6Test::getEntityCounts()
Upgrade6TestWithContentModeration::getEntityCounts in core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6TestWithContentModeration.php
Gets the expected number of entities per entity type after migration.

File

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

Class

Upgrade6Test
Tests Drupal 6 upgrade using the migrate UI.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d6

Code

protected function getEntityCounts() {
    return [
        'block' => 37,
        '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' => 102,
        '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' => 13,
        'search_page' => 3,
        'shortcut' => 2,
        'shortcut_set' => 1,
        'action' => 30,
        'menu' => 8,
        'path_alias' => 8,
        'taxonomy_term' => 15,
        'taxonomy_vocabulary' => 7,
        'user' => 7,
        'user_role' => 7,
        'menu_link_content' => 10,
        'view' => 14,
        'date_format' => 12,
        'entity_form_display' => 29,
        'entity_form_mode' => 1,
        'entity_view_display' => 55,
        'entity_view_mode' => 12,
        'base_field_override' => 39,
    ];
}

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