Skip to content

Commit 658c3a4

Browse files
committed
ACQE-8206: [Issue] [Checkout] Depend directives updated in failed payment email template
- Fixed Quote was not loaded from fixture issue in test file
1 parent b752f60 commit 658c3a4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dev/tests/integration/testsuite/Magento/Checkout/Test/Integration/VirtualProductFailedPaymentEmailTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
use Magento\Checkout\Helper\Data;
1111
use Magento\Framework\ObjectManagerInterface;
12+
use Magento\Quote\Model\Quote;
1213
use Magento\Quote\Model\QuoteFactory;
1314
use Magento\Quote\Model\QuoteManagement;
1415
use Magento\Sales\Api\OrderRepositoryInterface;
@@ -22,6 +23,7 @@
2223
*
2324
* @magentoAppIsolation enabled
2425
* @magentoDbIsolation enabled
26+
* @magentoApiDataFixture Magento/Checkout/_files/quote.php
2527
* @magentoDataFixture Magento/Checkout/_files/quote_with_virtual_product_and_address.php
2628
*/
2729
class VirtualProductFailedPaymentEmailTest extends TestCase
@@ -87,7 +89,8 @@ public function testSendPaymentFailedEmail(): void
8789
private function prepareOrderFromFixtureQuote(): array
8890
{
8991
/** @var \Magento\Quote\Model\Quote $quote */
90-
$quote = $this->quoteFactory->create()->loadByIdWithoutStore(1);
92+
$quote = $this->objectManager->create(Quote::class)
93+
->load('test_order_with_virtual_product', 'reserved_order_id');
9194
$this->assertTrue((bool)$quote->getId(), 'Quote was not loaded from fixture.');
9295
$this->assertNotEmpty($quote->getAllItems(), 'Quote from fixture is empty.');
9396
$quote->getPayment()->setMethod('checkmo');

0 commit comments

Comments
 (0)