function Upgrade7TestWithContentModeration::getEntityCounts
Same name in other branches
- 11.x core/modules/migrate_drupal_ui/tests/src/Functional/d7/Upgrade7TestWithContentModeration.php \Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7TestWithContentModeration::getEntityCounts()
Overrides Upgrade7Test::getEntityCounts
File
-
core/
modules/ migrate_drupal_ui/ tests/ src/ Functional/ d7/ Upgrade7TestWithContentModeration.php, line 57
Class
- Upgrade7TestWithContentModeration
- Tests Drupal 7 upgrade using the migrate UI with Content Moderation.
Namespace
Drupal\Tests\migrate_drupal_ui\Functional\d7Code
protected function getEntityCounts() {
$entity_counts = parent::getEntityCounts() + [
'content_moderation_state' => 5,
'workflow' => 1,
];
$entity_counts['entity_view_display'] = $entity_counts['entity_view_display'] + 1;
$entity_counts['field_config'] = $entity_counts['field_config'] + 2;
$entity_counts['view'] = $entity_counts['view'] + 1;
return $entity_counts;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.