You are here

public function MigrateNodeTitleLabelTest::testMigration in Zircon Profile 8

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

Tests migration of node title field overrides.

File

core/modules/node/src/Tests/Migrate/d7/MigrateNodeTitleLabelTest.php, line 50
Contains \Drupal\node\Tests\Migrate\d7\MigrateNodeTitleLabelTest.

Class

MigrateNodeTitleLabelTest
Tests migration of the title field label for node types.

Namespace

Drupal\node\Tests\Migrate\d7

Code

public function testMigration() {
  $this
    ->assertEntity('node.article.title', 'Title');
  $this
    ->assertEntity('node.blog.title', 'Title');
  $this
    ->assertEntity('node.book.title', 'Title');
  $this
    ->assertEntity('node.forum.title', 'Subject');
  $this
    ->assertEntity('node.page.title', 'Title');
  $this
    ->assertEntity('node.test_content_type.title', 'Title');
}