You are here

protected function FieldFormatterSettingsTest::assertEntity in Commerce Migrate 3.1.x

Same name in this branch
  1. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\FieldFormatterSettingsTest::assertEntity()
  2. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\FieldFormatterSettingsTest::assertEntity()
  3. 3.1.x modules/commerce/tests/src/Kernel/Migrate/commerce1/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_commerce\Kernel\Migrate\commerce1\FieldFormatterSettingsTest::assertEntity()
Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\FieldFormatterSettingsTest::assertEntity()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\FieldFormatterSettingsTest::assertEntity()

Asserts various aspects of a view display.

Parameters

string $id: The view display ID.

1 call to FieldFormatterSettingsTest::assertEntity()
FieldFormatterSettingsTest::testEntityDisplaySettings in modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldFormatterSettingsTest.php
Test that product entity display are migrated to product entities.

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldFormatterSettingsTest.php, line 53

Class

FieldFormatterSettingsTest
Tests migration of Ubercart 7 field formatter settings.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

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