File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
dev/tests/integration/testsuite/Magento/Sales/_files Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 5
5
*/
6
6
declare (strict_types=1 );
7
7
8
+ use Magento \Store \Model \StoreRepository ;
8
9
use Magento \Quote \Model \QuoteFactory ;
9
10
use Magento \Quote \Model \QuoteRepository ;
10
11
use Magento \TestFramework \Helper \Bootstrap ;
18
19
$ quoteFactory = $ objectManager ->get (QuoteFactory::class);
19
20
/** @var QuoteRepository $quoteRepository */
20
21
$ 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 ' );
21
27
22
28
$ quotes = [
23
29
'quote for first store ' => [
24
- 'store ' => 1 ,
30
+ 'store ' => $ defaultStore -> getId () ,
25
31
],
26
32
'quote for second store ' => [
27
- 'store ' => 2 ,
33
+ 'store ' => $ secondStore -> getId () ,
28
34
],
29
35
];
30
36
You can’t perform that action at this time.
0 commit comments