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/uc6/StoreTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\StoreTest::testStore()
  2. 3.0.x modules/ubercart/tests/src/Kernel/Migrate/uc6/StoreTest.php \Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6\StoreTest::testStore()

Test store migration.

File

modules/ubercart/tests/src/Kernel/Migrate/uc6/StoreTest.php, line 38

Class

StoreTest
Tests store migration.

Namespace

Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6

Code

public function testStore() {
  $this
    ->assertStoreEntity(1, 'Awesome Stuff', 'awesome_stuff@example.com', 'NZD', 'online', '1', TRUE);
  $store = Store::load(1);
  $address = $store
    ->getAddress();
  $this
    ->assertAddressItem($address, 'US', NULL, 'Betelgeuse', NULL, '4242', NULL, '123 First Street', '456 Second Street', NULL, NULL, NULL, NULL);
}