You are here

public function CommerceMigrateTestTrait::assertDefaultStore in Commerce Migrate 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Kernel/CommerceMigrateTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait::assertDefaultStore()
  2. 3.1.x tests/src/Kernel/CommerceMigrateTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait::assertDefaultStore()

Assert a default store exists.

File

tests/src/Kernel/CommerceMigrateTestTrait.php, line 196

Class

CommerceMigrateTestTrait
Helper function to test migrations.

Namespace

Drupal\Tests\commerce_migrate\Kernel

Code

public function assertDefaultStore() {
  $defaultStore = $this->container
    ->get('commerce_store.default_store_resolver')
    ->resolve();
  $this
    ->assertInstanceOf(Store::class, $defaultStore);
}