function MigrateBlockContentEntityFormDisplayTest::assertDisplay

Same name in other branches
  1. 9 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentEntityFormDisplayTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentEntityFormDisplayTest::assertDisplay()
  2. 10 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentEntityFormDisplayTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentEntityFormDisplayTest::assertDisplay()
  3. 11.x 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\Migrate

Code

protected function assertDisplay($id, $component_id) {
    $component = EntityFormDisplay::load($id)->getComponent($component_id);
    $this->assertIsArray($component);
    $this->assertSame('text_textarea_with_summary', $component['type']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.