diff -u b/migration_templates/d6_ubercart_store.yml b/migration_templates/d6_ubercart_store.yml --- b/migration_templates/d6_ubercart_store.yml +++ b/migration_templates/d6_ubercart_store.yml @@ -35,7 +35,6 @@ - plugin: migration_lookup migration: d6_user - default_currency: uc_currency_code mail: uc_store_email # Country code is required. If is it null none of the address fields are saved. diff -u b/migration_templates/d7_ubercart_store.yml b/migration_templates/d7_ubercart_store.yml --- b/migration_templates/d7_ubercart_store.yml +++ b/migration_templates/d7_ubercart_store.yml @@ -28,6 +28,13 @@ # Bundle type: 'constants/type' name: uc_store_name + uid: + - + plugin: default_value + default_value: 1 + - + plugin: migration_lookup + migration: d6_user default_currency: uc_currency_code mail: uc_store_email # Country code is required. If is it null none of the address fields are saved. diff -u b/tests/src/Kernel/d6/Ubercart/StoreTest.php b/tests/src/Kernel/d6/Ubercart/StoreTest.php --- b/tests/src/Kernel/d6/Ubercart/StoreTest.php +++ b/tests/src/Kernel/d6/Ubercart/StoreTest.php @@ -6,7 +6,7 @@ use Drupal\commerce_store\Entity\Store; /** - * Tests billing profile migration. + * Tests store migration. * * @group commerce_migrate */ diff -u b/tests/src/Kernel/d7/Ubercart/StoreTest.php b/tests/src/Kernel/d7/Ubercart/StoreTest.php --- b/tests/src/Kernel/d7/Ubercart/StoreTest.php +++ b/tests/src/Kernel/d7/Ubercart/StoreTest.php @@ -6,7 +6,7 @@ use Drupal\commerce_store\Entity\Store; /** - * Tests billing profile migration. + * Tests store migration. * * @group commerce_migrate */ @@ -46,6 +46,7 @@ $this->assertSame('quark@example.com', $store->getEmail()); $this->assertSame('USD', $store->getDefaultCurrencyCode()); $this->assertSame('online', $store->bundle()); + $this->assertSame('1', $store->getOwnerId()); $address = $store->getAddress(); $this->assertInstanceOf(AddressItem::class, $address);