You are here

public function AttributeFieldInstanceTest::testAttributeInstance in Commerce Migrate 3.0.x

Same name in this branch
  1. 3.0.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/uc6/AttributeFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\AttributeFieldInstanceTest::testAttributeInstance()
Same name and namespace in other branches
  1. 8.2 modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\AttributeFieldInstanceTest::testAttributeInstance()
  2. 3.1.x modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldInstanceTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\AttributeFieldInstanceTest::testAttributeInstance()

Test attribute field instance migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/AttributeFieldInstanceTest.php, line 72

Class

AttributeFieldInstanceTest
Tests attribute field instance migration.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testAttributeInstance() {
  $this
    ->assertEntity('design', 'entity_reference', 'default', 'Cool Designs for your towel', 'Select a design', TRUE);
  $this
    ->assertEntity('color', 'entity_reference', 'default', 'Color', 'Available towel colors', TRUE);
  $this
    ->assertEntity('model_size_attribute', 'entity_reference', 'default', 'Model size', 'Select your starship model size.', TRUE);
  $this
    ->assertEntity('name', 'entity_reference', 'default', 'Name', 'Enter a name to be written on the cake.', TRUE);
}