You are here

protected function MigrateFieldFormatterSettingsTest::assertEntity 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::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/src/Tests/Migrate/d7/MigrateFieldFormatterSettingsTest.php
Tests migration of D7 field formatter settings.

File

core/modules/field/src/Tests/Migrate/d7/MigrateFieldFormatterSettingsTest.php, line 167
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 assertEntity($id) {
  $display = EntityViewDisplay::load($id);
  $this
    ->assertTrue($display instanceof EntityViewDisplayInterface);
}