protected function MigrateFieldInstanceWidgetSettingsTest::assertComponent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/field/src/Tests/Migrate/d7/MigrateFieldInstanceWidgetSettingsTest.php \Drupal\field\Tests\Migrate\d7\MigrateFieldInstanceWidgetSettingsTest::assertComponent()
Asserts various aspects of a particular component of a form display.
Parameters
string $display_id: The form display ID.
string $component_id: The component ID.
string $widget_type: The expected widget type.
string $weight: The expected weight of the component.
1 call to MigrateFieldInstanceWidgetSettingsTest::assertComponent()
- MigrateFieldInstanceWidgetSettingsTest::testWidgetSettings in core/
modules/ field/ src/ Tests/ Migrate/ d7/ MigrateFieldInstanceWidgetSettingsTest.php - Test that migrated view modes can be loaded using D8 APIs.
File
- core/
modules/ field/ src/ Tests/ Migrate/ d7/ MigrateFieldInstanceWidgetSettingsTest.php, line 89 - Contains \Drupal\field\Tests\Migrate\d7\MigrateFieldInstanceWidgetSettingsTest.
Class
- MigrateFieldInstanceWidgetSettingsTest
- Migrate field widget settings.
Namespace
Drupal\field\Tests\Migrate\d7Code
protected function assertComponent($display_id, $component_id, $widget_type, $weight) {
$component = EntityFormDisplay::load($display_id)
->getComponent($component_id);
$this
->assertTrue(is_array($component));
$this
->assertIdentical($widget_type, $component['type']);
$this
->assertIdentical($weight, $component['weight']);
}