protected function FieldFormatterSettingsTest::assertComponentNotExists in Commerce Migrate 3.0.x
Same name and namespace in other branches
- 8.2 modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\FieldFormatterSettingsTest::assertComponentNotExists()
- 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\FieldFormatterSettingsTest::assertComponentNotExists()
Asserts that a particular component is NOT included in a display.
Parameters
string $display_id: The display ID.
string $component_id: The component ID.
File
- modules/
commerce/ tests/ src/ Kernel/ Migrate/ commerce1/ FieldFormatterSettingsTest.php, line 99
Class
- FieldFormatterSettingsTest
- Tests field formatter settings migration.
Namespace
Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1Code
protected function assertComponentNotExists($display_id, $component_id) {
$component = EntityViewDisplay::load($display_id)
->getComponent($component_id);
$this
->assertTrue(is_null($component));
}