You are here

protected function MigrateMediaTestBase::getEntityCounts in Media Migration 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 MigrateMediaTestBase::getEntityCounts()
MigrateMediaTestBase::getEntityCountsIncremental in tests/src/Functional/MigrateMediaTestBase.php
Gets expected number of entities per entity after incremental migration.

File

tests/src/Functional/MigrateMediaTestBase.php, line 275

Class

MigrateMediaTestBase
Provides a base class for testing media migration via the UI.

Namespace

Drupal\Tests\media_migration\Functional

Code

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;
}