You are here

public function FieldWidgetSettingsTest::testWidgetSettings in Commerce Migrate 3.1.x

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

Test that commerce_product settings are created.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/FieldWidgetSettingsTest.php, line 80

Class

FieldWidgetSettingsTest
Migrate field widget settings tests.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testWidgetSettings() {
  $this
    ->assertEntity('node.page.default', 'node', 'page');
  $this
    ->assertComponent('node.page.default', 'body', 'text_textarea_with_summary', 121);
  $this
    ->assertComponent('node.page.default', 'field_integer', 'number', 31);
  $this
    ->assertEntity('commerce_product.default.default', 'commerce_product', 'default');
  $this
    ->assertComponent('commerce_product.product.default', 'field_image_cache', 'image_image', -2);
  $this
    ->assertComponent('commerce_product.product.default', 'field_integer', 'number', 33);
  $this
    ->assertComponent('commerce_product.product.default', 'field_sustain', 'text_textarea', 31);
  $this
    ->assertComponent('commerce_product.ship.default', 'field_engine', 'text_textarea', 31);
  $this
    ->assertComponent('commerce_product.ship.default', 'field_image_cache', 'image_image', -2);
  $this
    ->assertComponent('commerce_product.ship.default', 'field_integer', 'number', 33);
}