File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
dev/tests/integration/testsuite/Magento/Sales/_files Expand file tree Collapse file tree 1 file changed +8
-4
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 \Store \Model \Store ;
19
20
$ quoteFactory = $ objectManager ->get (QuoteFactory::class);
20
21
/** @var QuoteRepository $quoteRepository */
21
22
$ quoteRepository = $ objectManager ->get (QuoteRepository::class);
22
- /** @var Store $store */
23
- $ store = $ objectManager ->get (Store::class);
23
+ /** @var StoreRepository $storeRepository */
24
+ $ storeRepository = $ objectManager ->get (StoreRepository::class);
25
+
26
+ $ defaultStore = $ storeRepository ->getActiveStoreByCode ('default ' );
27
+ $ secondStore = $ storeRepository ->getActiveStoreByCode ('fixture_second_store ' );
24
28
25
29
$ quotes = [
26
30
'quote for first store ' => [
27
- 'store ' => $ store -> load ( ' default ' , ' code ' ) ->getId (),
31
+ 'store ' => $ defaultStore ->getId (),
28
32
],
29
33
'quote for second store ' => [
30
- 'store ' => $ store -> load ( ' test_second_store ' , ' code ' ) ->getId (),
34
+ 'store ' => $ secondStore ->getId (),
31
35
],
32
36
];
33
37
You can’t perform that action at this time.
0 commit comments