protected function MigrateUpgradeCommerce1Test::getEntityCounts in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeCommerce1Test.php \Drupal\Tests\commerce_migrate_commerce\Functional\commerce1\MigrateUpgradeCommerce1Test::getEntityCounts()
- 3.0.x modules/commerce/tests/src/Functional/commerce1/MigrateUpgradeCommerce1Test.php \Drupal\Tests\commerce_migrate_commerce\Functional\commerce1\MigrateUpgradeCommerce1Test::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 MigrateUpgradeCommerce1Test::getEntityCounts()
- MigrateUpgradeCommerce1Test::testMigrateUpgrade in modules/
commerce/ tests/ src/ Functional/ commerce1/ MigrateUpgradeCommerce1Test.php - Executes all steps of migrations upgrade.
File
- modules/
commerce/ tests/ src/ Functional/ commerce1/ MigrateUpgradeCommerce1Test.php, line 148
Class
- MigrateUpgradeCommerce1Test
- Tests Commerce 1 upgrade using the migrate UI.
Namespace
Drupal\Tests\commerce_migrate_commerce\Functional\commerce1Code
protected function getEntityCounts() {
return [
'block' => 26,
'block_content' => 0,
'block_content_type' => 1,
'comment' => 0,
'comment_type' => 11,
'commerce_log' => 18,
'commerce_number_pattern' => 1,
'commerce_order' => 5,
'commerce_order_type' => 1,
'commerce_order_item' => 14,
'commerce_order_item_type' => 3,
'commerce_package_type' => 0,
'commerce_payment_gateway' => 1,
'commerce_payment_method' => 0,
'commerce_payment' => 3,
'commerce_currency' => 1,
'commerce_product_variation' => 84,
'commerce_product' => 20,
'commerce_product_type' => 7,
'commerce_product_variation_type' => 8,
'commerce_product_attribute' => 6,
'commerce_product_attribute_value' => 39,
'commerce_promotion_coupon' => 0,
'commerce_promotion' => 0,
'commerce_shipping_method' => 3,
'commerce_shipment' => 0,
'commerce_shipment_type' => 1,
'commerce_store' => 1,
'commerce_store_type' => 1,
'commerce_tax_type' => 1,
'contact_form' => 2,
'contact_message' => 0,
'editor' => 2,
'field_storage_config' => 42,
'field_config' => 113,
'file' => 105,
'filter_format' => 6,
'image_style' => 4,
'migration_group' => 1,
'migration' => 0,
'node' => 17,
'node_type' => 11,
'path_alias' => 121,
'profile' => 13,
'profile_type' => 3,
'rdf_mapping' => 5,
'search_page' => 2,
'shortcut' => 2,
'shortcut_set' => 1,
'action' => 27,
'menu' => 10,
'taxonomy_term' => 33,
'taxonomy_vocabulary' => 12,
'tour' => 2,
'user' => 3,
'user_role' => 3,
'menu_link_content' => 0,
'view' => 26,
'base_field_override' => 1,
'date_format' => 11,
'entity_form_display' => 48,
'entity_view_mode' => 46,
'entity_form_mode' => 5,
'entity_view_display' => 153,
];
}