You are here

public function StoreTest::testStore in Commerce Migrate 8.2

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

Test store migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc7/StoreTest.php, line 39

Class

StoreTest
Tests store migration.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc7

Code

public function testStore() {
  $this
    ->assertStoreEntity(1, "Quark's", 'quark@example.com', 'USD', 'online', '1', TRUE);
  $store = Store::load(1);
  $address = $store
    ->getAddress();
  $this
    ->assertAddressItem($address, 'CA', NULL, 'Deep Space 9', NULL, '9999', NULL, '47 The Promenade', 'Lower Level', NULL, NULL, NULL, NULL);
}