protected function AttributeFieldInstanceWidgetSettingsTest::assertEntity in Commerce Migrate 3.1.x
Same name in this branch
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/AttributeFieldInstanceWidgetSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\AttributeFieldInstanceWidgetSettingsTest::assertEntity()
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldInstanceWidgetSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\AttributeFieldInstanceWidgetSettingsTest::assertEntity()
Same name and namespace in other branches
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/AttributeFieldInstanceWidgetSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\AttributeFieldInstanceWidgetSettingsTest::assertEntity()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/AttributeFieldInstanceWidgetSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\AttributeFieldInstanceWidgetSettingsTest::assertEntity()
Asserts various aspects of a form display entity.
Parameters
string $id: The entity ID.
string $expected_entity_type: The expected entity type to which the display settings are attached.
string $expected_bundle: The expected bundle to which the display settings are attached.
1 call to AttributeFieldInstanceWidgetSettingsTest::assertEntity()
- AttributeFieldInstanceWidgetSettingsTest::testAttributeWidgetSettings in modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ AttributeFieldInstanceWidgetSettingsTest.php - Test the migration of the attributes on the product variation form display.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc7/ AttributeFieldInstanceWidgetSettingsTest.php, line 47
Class
- AttributeFieldInstanceWidgetSettingsTest
- Tests attribute field instance widget settings migration.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7Code
protected function assertEntity($id, $expected_entity_type, $expected_bundle) {
/** @var \Drupal\Core\Entity\Display\EntityFormDisplayInterface $entity */
$entity = EntityFormDisplay::load($id);
$this
->assertInstanceOf(EntityFormDisplayInterface::class, $entity);
$this
->assertSame($expected_entity_type, $entity
->getTargetEntityTypeId());
$this
->assertSame($expected_bundle, $entity
->getTargetBundle());
}