public function CommerceMigrateTestTrait::assertDefaultStore in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 tests/src/Kernel/CommerceMigrateTestTrait.php \Drupal\Tests\commerce_migrate\Kernel\CommerceMigrateTestTrait::assertDefaultStore()
- 3.0.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\KernelCode
public function assertDefaultStore() {
$defaultStore = $this->container
->get('commerce_store.default_store_resolver')
->resolve();
$this
->assertInstanceOf(Store::class, $defaultStore);
}