diff --git a/modules/product/src/Tests/ProductTestBase.php b/modules/product/src/Tests/ProductTestBase.php
index b9a1f70..0eeb07a 100644
--- a/modules/product/src/Tests/ProductTestBase.php
+++ b/modules/product/src/Tests/ProductTestBase.php
@@ -4,6 +4,7 @@ namespace Drupal\commerce_product\Tests;
 
 use Drupal\commerce\Tests\CommerceTestBase;
 use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
+use Drupal\Tests\commerce_store\StoreCreationTrait;
 
 /**
  * Defines base class for shortcut test cases.
@@ -11,6 +12,7 @@ use Drupal\field\Tests\EntityReference\EntityReferenceTestTrait;
 abstract class ProductTestBase extends CommerceTestBase {
 
   use EntityReferenceTestTrait;
+  use StoreCreationTrait;
 
   /**
    * Modules to enable.
@@ -58,19 +60,9 @@ abstract class ProductTestBase extends CommerceTestBase {
   protected function setUp() {
     parent::setUp();
 
-    $store_type = $this->createEntity('commerce_store_type', [
-      'id' => strtolower($this->randomMachineName(8)),
-      'label' => $this->randomMachineName(8),
-    ]);
-
     $this->stores = [];
     for ($i = 0; $i < 3; $i++) {
-      $this->stores[] = $this->createEntity('commerce_store', [
-        'type' => $store_type->id(),
-        'name' => $this->randomMachineName(8),
-        'mail' => \Drupal::currentUser()->getEmail(),
-        'default_currency' => 'USD',
-      ]);
+      $this->stores[] = $this->createStore();
     }
   }
 
diff --git a/modules/store/src/Tests/StoreTest.php b/modules/store/src/Tests/StoreTest.php
index 0f0e67b..dd9e784 100644
--- a/modules/store/src/Tests/StoreTest.php
+++ b/modules/store/src/Tests/StoreTest.php
@@ -4,6 +4,7 @@ namespace Drupal\commerce_store\Tests;
 
 use Drupal\commerce\Tests\CommerceTestBase;
 use Drupal\commerce_store\Entity\Store;
+use Drupal\Tests\commerce_store\StoreCreationTrait;
 
 /**
  * Create, view, edit, delete, and change store entities.
@@ -12,6 +13,8 @@ use Drupal\commerce_store\Entity\Store;
  */
 class StoreTest extends CommerceTestBase {
 
+  use StoreCreationTrait;
+
   /**
    * Modules to enable.
    *
@@ -82,10 +85,7 @@ class StoreTest extends CommerceTestBase {
    * Tests editing a store.
    */
   public function testEditStore() {
-    $store = $this->createStore([
-      'type' => 'default',
-      'name' => $this->randomMachineName(8),
-    ]);
+    $store = $this->createStore();
 
     $this->drupalGet('admin/commerce/stores');
     $this->clickLink(t('Edit'));
@@ -104,10 +104,7 @@ class StoreTest extends CommerceTestBase {
    * Tests deleting a store.
    */
   public function testDeleteStore() {
-    $store = $this->createStore([
-      'type' => 'default',
-      'name' => $this->randomMachineName(8),
-    ]);
+    $store = $this->createStore();
     $this->drupalGet($store->toUrl('delete-form'));
     $this->assertResponse(200, 'The store delete form can be accessed.');
     $this->assertText(t('This action cannot be undone.'), 'The store delete confirmation form is available.');
@@ -118,34 +115,4 @@ class StoreTest extends CommerceTestBase {
     $this->assertFalse($store_exists, 'The new store has been deleted from the database using UI.');
   }
 
-  /**
-   * Creates a new store entity.
-   *
-   * Initializes relevant defaults (mail, currency, address).
-   *
-   * @param array $values
-   *   An array of values.
-   *   Example: 'name' => 'Foo store'.
-   *
-   * @return \Drupal\Core\Entity\EntityInterface
-   *   A new store entity.
-   */
-  protected function createStore(array $values) {
-    /** @var \Drupal\Core\Entity\EntityStorageInterface $storage */
-    $values += [
-      'mail' => \Drupal::currentUser()->getEmail(),
-      'default_currency' => 'USD',
-      'address' => [
-        'country_code' => 'US',
-        'address_line1' => '1098 Alta Ave',
-        'locality' => 'Mountain View',
-        'administrative_area' => 'US-CA',
-        'postal_code' => '94043',
-      ],
-    ];
-    $store = $this->createEntity('commerce_store', $values);
-
-    return $store;
-  }
-
 }
diff --git a/modules/store/src/Tests/StoreTypeTest.php b/modules/store/src/Tests/StoreTypeTest.php
index d601305..f810446 100644
--- a/modules/store/src/Tests/StoreTypeTest.php
+++ b/modules/store/src/Tests/StoreTypeTest.php
@@ -4,6 +4,7 @@ namespace Drupal\commerce_store\Tests;
 
 use Drupal\commerce\Tests\CommerceTestBase;
 use Drupal\commerce_store\Entity\StoreType;
+use Drupal\Tests\commerce_store\StoreCreationTrait;
 
 /**
  * Ensure the store type works correctly.
@@ -12,6 +13,8 @@ use Drupal\commerce_store\Entity\StoreType;
  */
 class StoreTypeTest extends CommerceTestBase {
 
+  use StoreCreationTrait;
+
   /**
    * Modules to enable.
    *
@@ -119,11 +122,7 @@ class StoreTypeTest extends CommerceTestBase {
     ]);
 
     // Create a store.
-    $store = $this->createEntity('commerce_store', [
-      'type' => $type->id(),
-      'name' => $this->randomMachineName(8),
-      'email' => \Drupal::currentUser()->getEmail(),
-    ]);
+    $store = $this->createStore(NULL, NULL, $type->id());
 
     // Try to delete the store type.
     $this->drupalGet('admin/commerce/config/store-types/' . $type->id() . '/delete');
diff --git a/modules/store/tests/src/StoreCreationTrait.php b/modules/store/tests/src/StoreCreationTrait.php
new file mode 100644
index 0000000..cadf715
--- /dev/null
+++ b/modules/store/tests/src/StoreCreationTrait.php
@@ -0,0 +1,68 @@
+<?php
+
+namespace Drupal\Tests\commerce_store;
+
+use Drupal\commerce_store\Entity\Store;
+
+/**
+ * Provides methods to create stores and set the default store.
+ *
+ * This trait is meant to be used only by test classes.
+ */
+trait StoreCreationTrait {
+
+  /**
+   * Creates a store for the test.
+   *
+   * @param string $name
+   *   The store name.
+   * @param string $mail
+   *   The store email.
+   * @param string $type
+   *   The store type.
+   * @param bool $default
+   *   Whether the store should be the default store.
+   * @param string $country
+   *   The store country code.
+   * @param string $currency
+   *   The store currency code.
+   *
+   * @return \Drupal\commerce_store\Entity\StoreInterface
+   *    The store.
+   */
+  protected function createStore($name = NULL, $mail = NULL, $type = 'default', $default = FALSE, $country = 'USD', $currency = 'USD') {
+    if (!$name) {
+      $name = $this->randomMachineName(8);
+    }
+
+    if (!$mail) {
+      $mail = \Drupal::currentUser()->getEmail();
+    }
+
+    $currency_importer = \Drupal::service('commerce_price.currency_importer');
+    $currency_importer->import($currency);
+
+    $store = Store::create([
+      'type' => $type,
+      'uid' => 1,
+      'name' => $name,
+      'mail' => $mail,
+      'address' => [
+        'country_code' => $country,
+      ],
+      'default_currency' => $currency,
+      'billing_countries' => [
+        $country,
+      ],
+    ]);
+    $store->save();
+
+    if ($default) {
+      /** @var \Drupal\commerce_store\StoreStorage $store_storage */
+      $store_storage = \Drupal::service('entity_type.manager')->getStorage('commerce_store');
+      $store_storage->markAsDefault($store);
+    }
+
+    return $store;
+  }
+}
diff --git a/src/Tests/EntitySelectWidgetTest.php b/src/Tests/EntitySelectWidgetTest.php
index f975876..35b936f 100644
--- a/src/Tests/EntitySelectWidgetTest.php
+++ b/src/Tests/EntitySelectWidgetTest.php
@@ -5,6 +5,7 @@ namespace Drupal\commerce\Tests;
 use Drupal\commerce_product\Entity\Product;
 use Drupal\field\Entity\FieldStorageConfig;
 use Drupal\Core\Entity\Entity\EntityFormDisplay;
+use Drupal\Tests\commerce_store\StoreCreationTrait;
 
 /**
  * Tests the Entity select widget.
@@ -13,6 +14,8 @@ use Drupal\Core\Entity\Entity\EntityFormDisplay;
  */
 class EntitySelectWidgetTest extends CommerceTestBase {
 
+  use StoreCreationTrait;
+
   /**
    * Modules to enable.
    *
@@ -149,12 +152,7 @@ class EntitySelectWidgetTest extends CommerceTestBase {
    */
   protected function createStores($num_stores) {
     for ($i = 0; $i < $num_stores; $i++) {
-      $this->stores[] = $this->createEntity('commerce_store', [
-        'type' => 'default',
-        'name' => $this->randomMachineName(8),
-        'mail' => \Drupal::currentUser()->getEmail(),
-        'default_currency' => 'USD',
-      ]);
+      $this->stores[] = $this->createStore();
     }
   }
 
