File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
dev/tests/integration/testsuite/Magento/Quote/Model Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -325,17 +325,21 @@ public function testDeleteAllQuotesRelatedToCustomerIfWeDeleteStoreView(): void
325
325
->save ();
326
326
}
327
327
328
+ // Fetching the store id
329
+ $ firstStoreId = $ this ->store ->load ('store1 ' )->getId ();
330
+ $ secondStoreId = $ this ->store ->load ('store2 ' )->getId ();
331
+
328
332
// Create a quote with store id 2
329
333
$ quote = $ this ->quoteFactorys ->create ();
330
- $ quote ->setStoreId (2 );
334
+ $ quote ->setStoreId ($ firstStoreId );
331
335
$ quote ->save ();
332
336
333
337
// Assert that quote is created successfully.
334
338
$ this ->assertNotNull ($ quote ->getId ());
335
339
336
340
// Create a quote with store id 3
337
341
$ secondQuote = $ this ->quoteFactorys ->create ();
338
- $ secondQuote ->setStoreId (3 );
342
+ $ secondQuote ->setStoreId ($ secondStoreId );
339
343
$ secondQuote ->save ();
340
344
341
345
// Assert that second quote is created successfully.
You can’t perform that action at this time.
0 commit comments