protected function MigrateUiParagraphsTestBase::getEntityCounts in Paragraphs 8
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 MigrateUiParagraphsTestBase::getEntityCounts()
- MigrateUiParagraphsTestBase::getEntityCountsIncremental in tests/
src/ Functional/ Migrate/ MigrateUiParagraphsTestBase.php - Gets expected number of entities per entity after incremental migration.
File
- tests/
src/ Functional/ Migrate/ MigrateUiParagraphsTestBase.php, line 355
Class
- MigrateUiParagraphsTestBase
- Provides a base class for testing Paragraphs migration via the UI.
Namespace
Drupal\Tests\paragraphs\Functional\MigrateCode
protected function getEntityCounts() {
// This is not used.
$entity_counts = [];
foreach ($this
->getExpectedEntities() as $entity_type_id => $expected_entities) {
$entity_counts[$entity_type_id] = count($expected_entities);
}
return $entity_counts;
}