You are here

public function Drupal7MigrationTest::testMigration in Video Embed Field 8

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/Drupal7MigrationTest.php \Drupal\Tests\video_embed_field\Kernel\Drupal7MigrationTest::testMigration()

Test the emfield migration.

File

tests/src/Kernel/Drupal7MigrationTest.php, line 68

Class

Drupal7MigrationTest
Test the Drupal 7 to 8 video_embed_field migration.

Namespace

Drupal\Tests\video_embed_field\Kernel

Code

public function testMigration() {
  $migrated_vimeo = $this
    ->loadEntityByLabel('Vimeo Example');
  $migrated_youtube = $this
    ->loadEntityByLabel('YouTube Example');
  $this
    ->assertEquals('https://vimeo.com/21681203', $migrated_vimeo->field_video->value);
  $this
    ->assertEquals('https://www.youtube.com/watch?v=XgYu7-DQjDQ', $migrated_youtube->field_video->value);
}