function MigrateFieldFormatterSettingsTest::assertComponentNotExists
Same name in this branch
- 11.x core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
Same name in other branches
- 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()
- 8.9.x core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
- 8.9.x core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
- 10 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/d7/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
Asserts that a particular component is NOT included in a display.
@internal
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 42
Class
- MigrateFieldFormatterSettingsTest
- Upgrade field formatter settings to entity.display.*.*.yml.
Namespace
Drupal\Tests\field\Kernel\Migrate\d6Code
protected function assertComponentNotExists(string $display_id, string $component_id) : void {
$component = EntityViewDisplay::load($display_id)->getComponent($component_id);
$this->assertNull($component);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.