protected function MigrateNodeTitleLabelTest::assertEntity in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/node/src/Tests/Migrate/d7/MigrateNodeTitleLabelTest.php \Drupal\node\Tests\Migrate\d7\MigrateNodeTitleLabelTest::assertEntity()
Asserts various aspects of a base_field_override entity.
Parameters
string $id: The override ID.
string $label: The label's expected (overridden) value.
1 call to MigrateNodeTitleLabelTest::assertEntity()
- MigrateNodeTitleLabelTest::testMigration in core/
modules/ node/ src/ Tests/ Migrate/ d7/ MigrateNodeTitleLabelTest.php - Tests migration of node title field overrides.
File
- core/
modules/ node/ src/ Tests/ Migrate/ d7/ MigrateNodeTitleLabelTest.php, line 40 - Contains \Drupal\node\Tests\Migrate\d7\MigrateNodeTitleLabelTest.
Class
- MigrateNodeTitleLabelTest
- Tests migration of the title field label for node types.
Namespace
Drupal\node\Tests\Migrate\d7Code
protected function assertEntity($id, $label) {
$override = BaseFieldOverride::load($id);
$this
->assertTrue($override instanceof BaseFieldOverride);
/** @var \Drupal\Core\Field\Entity\BaseFieldOverride $override */
$this
->assertIdentical($label, $override
->getLabel());
}