You are here

protected function MigrateFieldFormatterSettingsTest::assertEntity in Drupal 8

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::assertEntity()
  2. 10 core/modules/field/tests/src/Kernel/Migrate/d7/MigrateFieldFormatterSettingsTest.php \Drupal\Tests\field\Kernel\Migrate\d7\MigrateFieldFormatterSettingsTest::assertEntity()

Asserts various aspects of a view display.

Parameters

string $id: The view display ID.

1 call to MigrateFieldFormatterSettingsTest::assertEntity()
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 46

Class

MigrateFieldFormatterSettingsTest
Tests migration of D7 field formatter settings.

Namespace

Drupal\Tests\field\Kernel\Migrate\d7

Code

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