You are here

protected function MigrateFieldFormatterSettingsTest::assertComponentNotExists in Drupal 8

Same name in this branch
  1. 8 core/modules/field/tests/src/Kernel/Migrate/d6/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d6\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
  2. 8 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
  1. 9 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldFormatterSettingsTest::assertComponentNotExists()
  2. 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.

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 81

Class

MigrateFieldFormatterSettingsTest
Tests migration of D7 field formatter settings.

Namespace

Drupal\Tests\field\Kernel\Migrate\d7

Code

protected function assertComponentNotExists($display_id, $component_id) {
  $component = EntityViewDisplay::load($display_id)
    ->getComponent($component_id);
  $this
    ->assertNull($component);
}