protected function MigrateEmbedMediaTokenToEntityEmbedTest::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 MigrateEmbedMediaTokenTestBase::getExpectedEntities
File
- tests/
src/ Functional/ MigrateEmbedMediaTokenToEntityEmbedTest.php, line 29
Class
- MigrateEmbedMediaTokenToEntityEmbedTest
- Tests the transformation of embed image media tokens to entity embed.
Namespace
Drupal\Tests\media_migration\FunctionalCode
protected function getExpectedEntities() {
$expected_entities = parent::getExpectedEntities();
$expected_entities['embed_button'] = [
'media' => 'Media',
];
return $expected_entities;
}