function MigrateCommentEntityFormDisplayTest::assertDisplay
Same name in this branch
- 8.9.x core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplayTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentEntityFormDisplayTest::assertDisplay()
Same name in other branches
- 9 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityFormDisplayTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentEntityFormDisplayTest::assertDisplay()
- 9 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplayTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentEntityFormDisplayTest::assertDisplay()
- 10 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityFormDisplayTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentEntityFormDisplayTest::assertDisplay()
- 10 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplayTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentEntityFormDisplayTest::assertDisplay()
- 11.x core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentEntityFormDisplayTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentEntityFormDisplayTest::assertDisplay()
- 11.x core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentEntityFormDisplayTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentEntityFormDisplayTest::assertDisplay()
Asserts various aspects of a comment component in an entity form display.
Parameters
string $id: The entity ID.
string $component_id: The ID of the form component.
1 call to MigrateCommentEntityFormDisplayTest::assertDisplay()
- MigrateCommentEntityFormDisplayTest::testMigration in core/
modules/ comment/ tests/ src/ Kernel/ Migrate/ d6/ MigrateCommentEntityFormDisplayTest.php - Tests the migrated display configuration.
File
-
core/
modules/ comment/ tests/ src/ Kernel/ Migrate/ d6/ MigrateCommentEntityFormDisplayTest.php, line 44
Class
- MigrateCommentEntityFormDisplayTest
- Tests the migration of comment form display from Drupal 6.
Namespace
Drupal\Tests\comment\Kernel\Migrate\d6Code
protected function assertDisplay($id, $component_id) {
$component = EntityFormDisplay::load($id)->getComponent($component_id);
$this->assertIsArray($component);
$this->assertSame('comment_default', $component['type']);
$this->assertSame(20, $component['weight']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.