public function Drupal6EmfieldMigrationTest::testEmfieldMigration in Video Embed Field 8
Same name and namespace in other branches
- 8.2 tests/src/Kernel/Drupal6EmfieldMigrationTest.php \Drupal\Tests\video_embed_field\Kernel\Drupal6EmfieldMigrationTest::testEmfieldMigration()
Test the emfield migration.
File
- tests/
src/ Kernel/ Drupal6EmfieldMigrationTest.php, line 38
Class
- Drupal6EmfieldMigrationTest
- Test the Drupal 6 emfield migration.
Namespace
Drupal\Tests\video_embed_field\KernelCode
public function testEmfieldMigration() {
$this
->migrateContent();
$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);
}