You are here

protected function FieldFormatterSettingsTest::assertComponentNotExists in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\FieldFormatterSettingsTest::assertComponentNotExists()
  2. 3.0.x modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\FieldFormatterSettingsTest::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.

File

modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldFormatterSettingsTest.php, line 99

Class

FieldFormatterSettingsTest
Tests field formatter settings migration.

Namespace

Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1

Code

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