function MigrateVocabularyEntityDisplayTest::assertEntity

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::assertEntity()

Asserts various aspects of a view display.

@internal

Parameters

string $id: The view display ID.

1 call to MigrateVocabularyEntityDisplayTest::assertEntity()
MigrateVocabularyEntityDisplayTest::testVocabularyEntityDisplay in core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateVocabularyEntityDisplayTest.php
Tests the Drupal 6 vocabulary-node type association to Drupal 8 migration.

File

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

Class

MigrateVocabularyEntityDisplayTest
Vocabulary entity display migration.

Namespace

Drupal\Tests\forum\Kernel\Migrate\d6

Code

protected function assertEntity(string $id) : void {
    $display = EntityViewDisplay::load($id);
    $this->assertInstanceOf(EntityViewDisplayInterface::class, $display);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.