3 namespace Drupal\Tests\video_embed_field\Kernel;
5 use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
8 * Test the Drupal 7 to 8 video_embed_field migration.
10 * @group video_embed_field
12 class Drupal7MigrationTest extends MigrateDrupal7TestBase {
19 protected $strictConfigSchema = FALSE;
24 public static $modules = [
40 protected function getFixtureFilePath() {
41 return __DIR__ . '/../../fixtures/drupal7-vef-2-x.php.gz';
47 protected function setUp() {
50 $this->installEntitySchema('node');
51 $this->installEntitySchema('comment');
52 $this->installConfig(static::$modules);
54 $this->executeMigrations([
66 * Test the emfield migration.
68 public function testMigration() {
69 $migrated_vimeo = $this->loadEntityByLabel('Vimeo Example');
70 $migrated_youtube = $this->loadEntityByLabel('YouTube Example');
71 $this->assertEquals('https://vimeo.com/21681203', $migrated_vimeo->field_video->value);
72 $this->assertEquals('https://www.youtube.com/watch?v=XgYu7-DQjDQ', $migrated_youtube->field_video->value);