View source
<?php
namespace Drupal\Tests\commerce_migrate_ubercart\Kernel\Migrate\uc6;
use Drupal\commerce_store\Entity\Store;
use Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait;
class StoreTest extends Ubercart6TestBase {
use CommerceMigrateTestTrait;
protected static $modules = [
'commerce_price',
'commerce_store',
'path',
'path_alias',
];
protected function setUp() : void {
parent::setUp();
$this
->migrateStore();
}
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);
}
}