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