Skip to content

Commit ade8018

Browse files
czigorbojanz
authored andcommitted
Issue #2904542 by czigor: CommerceKernelTestBase creates a store based on a missing store type
1 parent 1cea25a commit ade8018

6 files changed

Lines changed: 14 additions & 2 deletions

File tree

modules/checkout/tests/src/Kernel/CheckoutAccessTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,10 @@ protected function setUp() {
7474
parent::setUp();
7575

7676
$this->installEntitySchema('profile');
77-
$this->installEntitySchema('commerce_store');
7877
$this->installEntitySchema('commerce_product');
7978
$this->installEntitySchema('commerce_product_variation');
8079
$this->installEntitySchema('commerce_order');
8180
$this->installEntitySchema('commerce_order_item');
82-
$this->installConfig('commerce_store');
8381
$this->installConfig('commerce_order');
8482
$this->installConfig('commerce_product');
8583
$this->installConfig('commerce_checkout');

modules/order/tests/src/Kernel/AdjustmentItemTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class AdjustmentItemTest extends CommerceKernelTestBase {
2727
* {@inheritdoc}
2828
*/
2929
public static $modules = [
30+
'entity_reference_revisions',
31+
'profile',
32+
'state_machine',
3033
'commerce_order',
3134
];
3235

modules/order/tests/src/Kernel/AdjustmentTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class AdjustmentTest extends CommerceKernelTestBase {
1616
* {@inheritdoc}
1717
*/
1818
public static $modules = [
19+
'entity_reference_revisions',
20+
'profile',
21+
'state_machine',
1922
'commerce_order',
2023
'commerce_order_test',
2124
];

modules/promotion/tests/src/Kernel/CouponValidationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ class CouponValidationTest extends CommerceKernelTestBase {
1919
* @var array
2020
*/
2121
public static $modules = [
22+
'entity_reference_revisions',
23+
'profile',
24+
'state_machine',
25+
'commerce_order',
2226
'commerce_promotion',
2327
];
2428

tests/src/Kernel/CommerceKernelTestBase.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ protected function setUp() {
4848
$this->installSchema('system', 'router');
4949
$this->installEntitySchema('commerce_currency');
5050
$this->installEntitySchema('commerce_store');
51+
$this->installConfig(['commerce_store']);
5152

5253
$currency_importer = \Drupal::service('commerce_price.currency_importer');
5354
$currency_importer->import('USD');

tests/src/Kernel/PluginItemTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ class PluginItemTest extends CommerceKernelTestBase {
1919
* {@inheritdoc}
2020
*/
2121
public static $modules = [
22+
'entity_reference_revisions',
23+
'profile',
24+
'state_machine',
2225
'commerce_order',
2326
'commerce_test',
2427
];

0 commit comments

Comments
 (0)