Skip to content

Commit 2958372

Browse files
akaashakaash
authored andcommitted
Integration test fix
1 parent 45730f6 commit 2958372

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

dev/tests/integration/testsuite/Magento/Quote/Model/QuoteRepositoryTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,17 +325,21 @@ public function testDeleteAllQuotesRelatedToCustomerIfWeDeleteStoreView(): void
325325
->save();
326326
}
327327

328+
// Fetching the store id
329+
$firstStoreId = $this->store->load('store1')->getId();
330+
$secondStoreId = $this->store->load('store2')->getId();
331+
328332
// Create a quote with store id 2
329333
$quote = $this->quoteFactorys->create();
330-
$quote->setStoreId(2);
334+
$quote->setStoreId($firstStoreId);
331335
$quote->save();
332336

333337
// Assert that quote is created successfully.
334338
$this->assertNotNull($quote->getId());
335339

336340
// Create a quote with store id 3
337341
$secondQuote = $this->quoteFactorys->create();
338-
$secondQuote->setStoreId(3);
342+
$secondQuote->setStoreId($secondStoreId);
339343
$secondQuote->save();
340344

341345
// Assert that second quote is created successfully.

0 commit comments

Comments
 (0)