function MigrateFieldFormatterSettingsTest::assertComponentNotExists
Same name in this branch
- 11.x core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d6\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::testMigration in core/
modules/ field/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFieldFormatterSettingsTest.php - Tests migration of D7 field formatter settings.
File
-
core/
modules/ field/ tests/ src/ Kernel/ Migrate/ d7/ MigrateFieldFormatterSettingsTest.php, line 93
Class
- MigrateFieldFormatterSettingsTest
- Tests migration of D7 field formatter settings.
Namespace
Drupal\Tests\field\Kernel\Migrate\d7Code
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.