function MigrateNodeTitleLabelTest::assertEntity
Same name in other branches
- 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTitleLabelTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeTitleLabelTest::assertEntity()
- 8.9.x core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTitleLabelTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeTitleLabelTest::assertEntity()
- 10 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeTitleLabelTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeTitleLabelTest::assertEntity()
Asserts various aspects of a base_field_override entity.
@internal
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/ tests/ src/ Kernel/ Migrate/ d7/ MigrateNodeTitleLabelTest.php - Tests migration of node title field overrides.
File
-
core/
modules/ node/ tests/ src/ Kernel/ Migrate/ d7/ MigrateNodeTitleLabelTest.php, line 41
Class
- MigrateNodeTitleLabelTest
- Tests migration of the title field label for node types.
Namespace
Drupal\Tests\node\Kernel\Migrate\d7Code
protected function assertEntity(string $id, string $label) : void {
$override = BaseFieldOverride::load($id);
$this->assertInstanceOf(BaseFieldOverride::class, $override);
/** @var \Drupal\Core\Field\Entity\BaseFieldOverride $override */
$this->assertSame($label, $override->getLabel());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.