3 namespace Drupal\Tests\video_embed_field\Kernel;
5 use Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase;
8 * Test the Drupal 6 emfield migration.
10 * @group video_embed_field
12 class Drupal6EmfieldMigrationTest extends MigrateDrupal6TestBase {
19 protected $strictConfigSchema = FALSE;
24 public static $modules = [
31 protected function getFixtureFilePath() {
32 return __DIR__ . '/../../fixtures/drupal6-emfield-2-x.php.gz';
36 * Test the emfield migration.
38 public function testEmfieldMigration() {
39 $this->migrateContent();
40 $migrated_vimeo = $this->loadEntityByLabel('Vimeo Example');
41 $migrated_youtube = $this->loadEntityByLabel('YouTube Example');
42 $this->assertEquals('https://vimeo.com/21681203', $migrated_vimeo->field_video->value);
43 $this->assertEquals('https://www.youtube.com/watch?v=XgYu7-DQjDQ', $migrated_youtube->field_video->value);