function MigrateVocabularyEntityDisplayTest::assertComponentNotExists

Same name in other branches
  1. 11.x core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityDisplayTest.php \Drupal\Tests\forum\Kernel\Migrate\d6\MigrateVocabularyEntityDisplayTest::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.

File

core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityDisplayTest.php, line 111

Class

MigrateVocabularyEntityDisplayTest
Vocabulary entity display migration.

Namespace

Drupal\Tests\forum\Kernel\Migrate\d6

Code

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.