function Upgrade7Test::getEntityCounts

Same name in other branches
  1. 9 core/modules/rdf/tests/src/Functional/Migrate/Upgrade7Test.php \Drupal\Tests\rdf\Functional\Migrate\Upgrade7Test::getEntityCounts()
  2. 9 core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7Test::getEntityCounts()
  3. 10 core/modules/forum/tests/src/Functional/migrate_drupal/d7/Upgrade7Test.php \Drupal\Tests\forum\Functional\migrate_drupal\d7\Upgrade7Test::getEntityCounts()
  4. 10 core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7Test::getEntityCounts()
  5. 11.x core/modules/forum/tests/src/Functional/migrate_drupal/d7/Upgrade7Test.php \Drupal\Tests\forum\Functional\migrate_drupal\d7\Upgrade7Test::getEntityCounts()
  6. 11.x core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7Test::getEntityCounts()

Overrides MigrateUpgradeTestBase::getEntityCounts

1 call to Upgrade7Test::getEntityCounts()
Upgrade7Test::getEntityCountsIncremental in core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php
Gets expected number of entities per entity after incremental migration.

File

core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7Test.php, line 75

Class

Upgrade7Test
Tests Drupal 7 upgrade using the migrate UI.

Namespace

Drupal\Tests\migrate_drupal_ui\Functional\d7

Code

protected function getEntityCounts() {
    return [
        'aggregator_item' => 11,
        'aggregator_feed' => 1,
        'block' => 25,
        'block_content' => 1,
        'block_content_type' => 1,
        'comment' => 4,
        // The 'standard' profile provides the 'comment' comment type, and the
        // migration creates 6 comment types, one per node type.
'comment_type' => 8,
        // Module 'language' comes with 'en', 'und', 'zxx'. Migration adds 'is'
        // and 'fr'.
'configurable_language' => 5,
        'contact_form' => 3,
        'contact_message' => 0,
        'editor' => 2,
        'field_config' => 81,
        'field_storage_config' => 62,
        'file' => 3,
        'filter_format' => 7,
        'image_style' => 6,
        'language_content_settings' => 20,
        'node' => 7,
        'node_type' => 7,
        'rdf_mapping' => 8,
        'search_page' => 2,
        'shortcut' => 6,
        'shortcut_set' => 2,
        'action' => 19,
        'menu' => 6,
        'taxonomy_term' => 24,
        'taxonomy_vocabulary' => 7,
        'path_alias' => 8,
        'tour' => 5,
        'user' => 4,
        'user_role' => 3,
        'menu_link_content' => 12,
        'view' => 16,
        'date_format' => 11,
        'entity_form_display' => 22,
        'entity_form_mode' => 1,
        'entity_view_display' => 33,
        'entity_view_mode' => 14,
        'base_field_override' => 4,
    ];
}

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