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 public static $modules = [
26 protected function getFixtureFilePath() {
27 return __DIR__ . '/../../fixtures/drupal6-emfield-2-x.php.gz';
31 * Test the emfield migration.
33 public function testEmfieldMigration() {
34 $this->migrateContent();
35 $migrated_vimeo = $this->loadEntityByLabel('Vimeo Example');
36 $migrated_youtube = $this->loadEntityByLabel('YouTube Example');
37 $this->assertEquals('https://vimeo.com/21681203', $migrated_vimeo->field_video->value);
38 $this->assertEquals('https://www.youtube.com/watch?v=XgYu7-DQjDQ', $migrated_youtube->field_video->value);