You are here

public function AttributeFieldInstanceTest::testAttributeInstance in Commerce Migrate 8.2

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

Test attribute field instance migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/AttributeFieldInstanceTest.php, line 81

Class

AttributeFieldInstanceTest
Tests attribute field instance migration.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

public function testAttributeInstance() {
  $this
    ->assertEntity('size', 'entity_reference', 'default', 'Size', 'Volume', TRUE);
  $this
    ->assertEntity('extra', 'entity_reference', 'default', 'Extra', '', TRUE);
  $this
    ->assertEntity('attribute_with_name_', 'entity_reference', 'default', 'Long name test', '', TRUE);
  $this
    ->assertEntity('duration', 'entity_reference', 'default', 'Duration', '', TRUE);
}