Skip to content

Commit

Permalink
FRW-1817 Fixed false positive test cases with Dynamic Multistore mode…
Browse files Browse the repository at this point in the history
… enabled. (#10862)

FRW-6382 Adjust StoreDependencyHelper and related tests to cover cases when there is no store provided
  • Loading branch information
gechetspr authored Mar 21, 2024
1 parent 92c3cab commit 1fbf40a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public function testSaveSalesOrderConfiguredBundlesFromQuoteThrowsExceptionWhenG
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();

$this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
Expand Down Expand Up @@ -278,6 +279,7 @@ public function testSaveSalesOrderConfiguredBundlesFromQuoteThrowsExceptionWhenQ
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();

$this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
Expand Down Expand Up @@ -311,6 +313,7 @@ public function testSaveSalesOrderConfiguredBundlesFromQuoteThrowsExceptionWhenT
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();

$this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
Expand Down Expand Up @@ -343,6 +346,7 @@ public function testSaveSalesOrderConfiguredBundlesFromQuoteThrowsExceptionWhenT
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();

$this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
Expand Down Expand Up @@ -377,6 +381,7 @@ public function testSaveSalesOrderConfiguredBundlesFromQuoteThrowsExceptionWhenT
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();

$this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
Expand Down Expand Up @@ -409,6 +414,7 @@ public function testSaveSalesOrderConfiguredBundlesFromQuoteThrowsExceptionWhenS
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();

$this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
Expand Down Expand Up @@ -441,6 +447,7 @@ public function testSaveSalesOrderConfiguredBundlesFromQuoteThrowsExceptionWhenS
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();

$this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
Expand Down Expand Up @@ -500,6 +507,7 @@ public function testExpandOrderWithConfiguredBundlesWithoutConfiguredBundle(): v
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();

$saveOrderTransfer = $this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
Expand Down Expand Up @@ -596,6 +604,7 @@ public function testExpandItemsWithSalesOrderConfiguredBundlesWithoutConfiguredB
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();
$saveOrderTransfer = $this->tester->haveOrderFromQuote($quoteTransfer, BusinessHelper::DEFAULT_OMS_PROCESS_NAME);
$this->tester->getFacade()->saveSalesOrderConfiguredBundlesFromQuote($quoteTransfer);
Expand Down Expand Up @@ -689,6 +698,7 @@ protected function getFakeQuoteWithConfiguredBundleItems(): QuoteTransfer
->withShippingAddress()
->withBillingAddress()
->withCurrency()
->withStore()
->build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ suites:
- \SprykerTest\Zed\Oms\Helper\OmsHelper
- \SprykerTest\Shared\Glossary\Helper\TranslationHelper
- \SprykerTest\Service\Container\Helper\ContainerHelper
- \SprykerTest\Shared\Store\Helper\StoreDependencyHelper
- \SprykerTest\Zed\Store\Helper\StoreDependencyHelper

0 comments on commit 1fbf40a

Please sign in to comment.