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