protected function MigrateEmbedMediaTokenTestBase::getExpectedEntities in Media Migration 8
Gets the expected entity IDs and labels per entity type after migration.
Return value
string|null[][] An array of expected entity labels keyed by IDs, grouped by entity type ID. For some of the entities, label can be NULL.
Overrides MigrateMediaTestBase::getExpectedEntities
1 call to MigrateEmbedMediaTokenTestBase::getExpectedEntities()
- MigrateEmbedMediaTokenToEntityEmbedTest::getExpectedEntities in tests/
src/ Functional/ MigrateEmbedMediaTokenToEntityEmbedTest.php - Gets the expected entity IDs and labels per entity type after migration.
1 method overrides MigrateEmbedMediaTokenTestBase::getExpectedEntities()
- MigrateEmbedMediaTokenToEntityEmbedTest::getExpectedEntities in tests/
src/ Functional/ MigrateEmbedMediaTokenToEntityEmbedTest.php - Gets the expected entity IDs and labels per entity type after migration.
File
- tests/
src/ Functional/ MigrateEmbedMediaTokenTestBase.php, line 20
Class
- MigrateEmbedMediaTokenTestBase
- Base class for testing media token transformations.
Namespace
Drupal\Tests\media_migration\FunctionalCode
protected function getExpectedEntities() {
$expected_entities = parent::getExpectedEntities();
if (!array_key_exists('filtered_html', $expected_entities['filter_format'])) {
$expected_entities['filter_format']['filtered_html'] = 'Filtered HTML';
}
return $expected_entities;
}