protected function MigrateUpgradeUbercart6Test::getEntityCounts in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/ubercart/tests/src/Functional/uc6/MigrateUpgradeUbercart6Test.php \Drupal\Tests\commerce_migrate_ubercart\Functional\uc6\MigrateUpgradeUbercart6Test::getEntityCounts()
- 3.1.x modules/ubercart/tests/src/Functional/uc6/MigrateUpgradeUbercart6Test.php \Drupal\Tests\commerce_migrate_ubercart\Functional\uc6\MigrateUpgradeUbercart6Test::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
File
- modules/
ubercart/ tests/ src/ Functional/ uc6/ MigrateUpgradeUbercart6Test.php, line 92
Class
- MigrateUpgradeUbercart6Test
- Tests Ubercart 6 migration using the Migrate Drupal UI.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Functional\uc6Code
protected function getEntityCounts() {
return [
'action' => 31,
'base_field_override' => 6,
'block' => 23,
'block_content' => 1,
'block_content_type' => 1,
'comment' => 1,
'comment_type' => 3,
'commerce_currency' => 2,
'commerce_log' => 0,
'commerce_number_pattern' => 1,
'commerce_order' => 5,
'commerce_order_item' => 6,
'commerce_order_item_type' => 1,
'commerce_order_type' => 1,
'commerce_package_type' => 0,
'commerce_payment' => 4,
'commerce_payment_gateway' => 2,
'commerce_payment_method' => 0,
'commerce_product' => 5,
'commerce_product_attribute' => 4,
'commerce_product_attribute_value' => 7,
'commerce_product_type' => 4,
'commerce_product_variation' => 5,
'commerce_product_variation_type' => 4,
'commerce_promotion' => 0,
'commerce_promotion_coupon' => 0,
'commerce_shipment' => 0,
'commerce_shipment_type' => 1,
'commerce_shipping_method' => 2,
'commerce_store' => 1,
'commerce_store_type' => 1,
'commerce_tax_type' => 1,
'contact_form' => 2,
'contact_message' => 0,
'date_format' => 11,
'editor' => 2,
'entity_form_display' => 19,
'entity_form_mode' => 5,
'entity_view_display' => 32,
'entity_view_mode' => 31,
'field_config' => 36,
'field_storage_config' => 28,
'file' => 1,
'filter_format' => 5,
'image_style' => 3,
'menu' => 8,
'menu_link_content' => 1,
'migration' => 0,
'migration_group' => 1,
'node' => 2,
'node_type' => 3,
'path_alias' => 2,
'profile' => 4,
'profile_type' => 1,
'rdf_mapping' => 5,
'search_page' => 2,
'shortcut' => 2,
'shortcut_set' => 1,
'taxonomy_term' => 3,
'taxonomy_vocabulary' => 2,
'tour' => 1,
'user' => 6,
'user_role' => 5,
'view' => 25,
];
}