Skip to content

Commit 9b6dae4

Browse files
Merge remote-tracking branch 'remotes/github/MAGETWO-69825' into EPAM-PR-81
2 parents ad7e0eb + 5c76cfe commit 9b6dae4

File tree

1 file changed

+8
-2
lines changed
  • dev/tests/integration/testsuite/Magento/Sales/_files

1 file changed

+8
-2
lines changed

dev/tests/integration/testsuite/Magento/Sales/_files/quotes.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
declare(strict_types=1);
77

8+
use Magento\Store\Model\StoreRepository;
89
use Magento\Quote\Model\QuoteFactory;
910
use Magento\Quote\Model\QuoteRepository;
1011
use Magento\TestFramework\Helper\Bootstrap;
@@ -18,13 +19,18 @@
1819
$quoteFactory = $objectManager->get(QuoteFactory::class);
1920
/** @var QuoteRepository $quoteRepository */
2021
$quoteRepository = $objectManager->get(QuoteRepository::class);
22+
/** @var StoreRepository $storeRepository */
23+
$storeRepository = $objectManager->get(StoreRepository::class);
24+
25+
$defaultStore = $storeRepository->getActiveStoreByCode('default');
26+
$secondStore = $storeRepository->getActiveStoreByCode('fixture_second_store');
2127

2228
$quotes = [
2329
'quote for first store' => [
24-
'store' => 1,
30+
'store' => $defaultStore->getId(),
2531
],
2632
'quote for second store' => [
27-
'store' => 2,
33+
'store' => $secondStore->getId(),
2834
],
2935
];
3036

0 commit comments

Comments
 (0)