protected function MigrateBlockContentEntityFormDisplayTest::assertDisplay in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentEntityFormDisplayTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentEntityFormDisplayTest::assertDisplay()
- 10 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentEntityFormDisplayTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentEntityFormDisplayTest::assertDisplay()
Asserts a display entity.
Parameters
string $id: The entity ID.
string $component_id: The ID of the form component.
1 call to MigrateBlockContentEntityFormDisplayTest::assertDisplay()
- MigrateBlockContentEntityFormDisplayTest::testMigration in core/
modules/ block_content/ tests/ src/ Kernel/ Migrate/ MigrateBlockContentEntityFormDisplayTest.php - Tests the migrated display configuration.
File
- core/
modules/ block_content/ tests/ src/ Kernel/ Migrate/ MigrateBlockContentEntityFormDisplayTest.php, line 42
Class
- MigrateBlockContentEntityFormDisplayTest
- Tests migration of block content body field form display configuration.
Namespace
Drupal\Tests\block_content\Kernel\MigrateCode
protected function assertDisplay($id, $component_id) {
$component = EntityFormDisplay::load($id)
->getComponent($component_id);
$this
->assertIsArray($component);
$this
->assertSame('text_textarea_with_summary', $component['type']);
}