protected function MigrateFieldFormatterSettingsTest::assertComponentNotExists in Drupal 9
Same name in this branch
- 9 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
- 9 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
Same name and namespace in other branches
- 8 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
- 10 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldFormatterSettingsTest::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.
1 call to MigrateFieldFormatterSettingsTest::assertComponentNotExists()
- MigrateFieldFormatterSettingsTest::testEntityDisplaySettings in core/
modules/ field/ tests/ src/ Kernel/ Migrate/ d6/ MigrateFieldFormatterSettingsTest.php - Tests that migrated entity display settings can be loaded using D8 API's.
File
- core/
modules/ field/ tests/ src/ Kernel/ Migrate/ d6/ MigrateFieldFormatterSettingsTest.php, line 38
Class
- MigrateFieldFormatterSettingsTest
- Upgrade field formatter settings to entity.display.*.*.yml.
Namespace
Drupal\Tests\field\Kernel\Migrate\d6Code
protected function assertComponentNotExists($display_id, $component_id) {
$component = EntityViewDisplay::load($display_id)
->getComponent($component_id);
$this
->assertNull($component);
}