You are here

protected function MigrateFieldFormatterSettingsTest::assertComponentNotExists in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/field/src/Tests/Migrate/d7/MigrateFieldFormatterSettingsTest.php \Drupal\field\Tests\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/src/Tests/Migrate/d7/MigrateFieldFormatterSettingsTest.php
Tests migration of D7 field formatter settings.

File

core/modules/field/src/Tests/Migrate/d7/MigrateFieldFormatterSettingsTest.php, line 202
Contains \Drupal\field\Tests\Migrate\d7\MigrateFieldFormatterSettingsTest.

Class

MigrateFieldFormatterSettingsTest
Tests migration of D7 field formatter settings.

Namespace

Drupal\field\Tests\Migrate\d7

Code

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