public function FieldFormatterSettingsTest::testEntityDisplaySettings in Commerce Migrate 3.1.x
Same name in this branch
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc7/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7\FieldFormatterSettingsTest::testEntityDisplaySettings()
- 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\FieldFormatterSettingsTest::testEntityDisplaySettings()
Same name and namespace in other branches
- 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\FieldFormatterSettingsTest::testEntityDisplaySettings()
- 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/FieldFormatterSettingsTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\FieldFormatterSettingsTest::testEntityDisplaySettings()
Test that product entity display are migrated to product entities.
File
- modules/
ubercart/ tests/ src/ Kernel/ Migrate/ uc6/ FieldFormatterSettingsTest.php, line 87
Class
- FieldFormatterSettingsTest
- Migrate field instance tests.
Namespace
Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6Code
public function testEntityDisplaySettings() {
$this
->assertNotEntity('node.ship.default');
$this
->assertNotEntity('node.product.default');
$this
->assertNotEntity('commerce_product.page.default');
$this
->assertNotEntity('commerce_product.story.default');
$this
->assertEntity('commerce_product.default.default');
$this
->assertComponent('commerce_product.default.default', 'body', 'text_default', 'hidden', 0);
$this
->assertComponent('commerce_product.default.default', 'variations', 'commerce_add_to_cart', 'hidden', 1);
$this
->assertComponent('commerce_product.default.default', 'title', 'string', 'hidden', -5);
$this
->assertEntity('commerce_product.product.default');
$this
->assertComponent('commerce_product.product.default', 'body', 'text_default', 'hidden', 11);
$this
->assertComponent('commerce_product.product.default', 'variations', 'commerce_add_to_cart', 'above', 10);
$this
->assertComponent('commerce_product.product.default', 'field_integer', 'number_integer', 'above', 33);
$this
->assertComponent('commerce_product.product.default', 'field_sustain', 'text_default', 'above', 31);
$this
->assertEntity('commerce_product.ship.default');
$this
->assertComponent('commerce_product.ship.default', 'body', 'text_default', 'hidden', 11);
$this
->assertComponent('commerce_product.ship.default', 'variations', 'commerce_add_to_cart', 'above', 10);
$this
->assertComponent('commerce_product.ship.default', 'field_integer', 'number_integer', 'above', 33);
$this
->assertComponent('commerce_product.ship.default', 'field_engine', 'text_default', 'above', 31);
}