protected function MigrateCommentEntityDisplayTest::assertDisplay in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Tests/Migrate/d7/MigrateCommentEntityDisplayTest.php \Drupal\comment\Tests\Migrate\d7\MigrateCommentEntityDisplayTest::assertDisplay()
Asserts a display entity.
Parameters
string $id: The entity ID.
string $component_id: The ID of the display component.
1 call to MigrateCommentEntityDisplayTest::assertDisplay()
- MigrateCommentEntityDisplayTest::testMigration in core/
modules/ comment/ src/ Tests/ Migrate/ d7/ MigrateCommentEntityDisplayTest.php - Tests the migrated display configuration.
File
- core/
modules/ comment/ src/ Tests/ Migrate/ d7/ MigrateCommentEntityDisplayTest.php, line 45 - Contains \Drupal\comment\Tests\Migrate\d7\MigrateCommentEntityDisplayTest.
Class
- MigrateCommentEntityDisplayTest
- Tests migration of comment display configuration.
Namespace
Drupal\comment\Tests\Migrate\d7Code
protected function assertDisplay($id, $component_id) {
$component = EntityViewDisplay::load($id)
->getComponent($component_id);
$this
->assertTrue(is_array($component));
$this
->assertIdentical('hidden', $component['label']);
$this
->assertIdentical('comment_default', $component['type']);
$this
->assertIdentical(20, $component['weight']);
}