You are here

public function MigrateViewModesTest::testMigration in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/src/Tests/Migrate/d7/MigrateViewModesTest.php \Drupal\field\Tests\Migrate\d7\MigrateViewModesTest::testMigration()

Tests migration of D7 view mode variables to D8 config entities.

File

core/modules/field/src/Tests/Migrate/d7/MigrateViewModesTest.php, line 56
Contains \Drupal\field\Tests\Migrate\d7\MigrateViewModesTest.

Class

MigrateViewModesTest
Tests migration of D7 view modes.

Namespace

Drupal\field\Tests\Migrate\d7

Code

public function testMigration() {
  $this
    ->assertEntity('comment.full', 'Full', 'comment');
  $this
    ->assertEntity('node.teaser', 'Teaser', 'node');
  $this
    ->assertEntity('node.full', 'Full', 'node');
  $this
    ->assertEntity('user.full', 'Full', 'user');
}