Skip to content

Commit 2e32deb

Browse files
committed
Merge remote-tracking branch 'tango/MC-17137' into PR-07-24-1
2 parents 858b130 + f84bdbb commit 2e32deb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dev/tests/integration/testsuite/Magento/Braintree/Controller/Paypal/PlaceOrderTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function setUp()
4747

4848
$this->session = $this->getMockBuilder(Session::class)
4949
->disableOriginalConstructor()
50-
->setMethods(['getQuote', 'setLastOrderStatus', 'unsLastBillingAgreementReferenceId'])
50+
->setMethods(['getQuote', 'setLastOrderStatus', 'unsLastBillingAgreementReferenceId', 'getQuoteId'])
5151
->getMock();
5252

5353
$adapterFactory = $this->getMockBuilder(BraintreeAdapterFactory::class)
@@ -76,6 +76,8 @@ protected function tearDown()
7676
/**
7777
* Tests a negative scenario for a place order flow when exception throws after placing an order.
7878
*
79+
* @magentoAppArea frontend
80+
* @magentoAppIsolation enabled
7981
* @magentoDataFixture Magento/Braintree/Fixtures/paypal_quote.php
8082
*/
8183
public function testExecuteWithFailedOrder()
@@ -85,6 +87,8 @@ public function testExecuteWithFailedOrder()
8587

8688
$this->session->method('getQuote')
8789
->willReturn($quote);
90+
$this->session->method('getQuoteId')
91+
->willReturn($quote->getId());
8892

8993
$this->adapter->method('sale')
9094
->willReturn($this->getTransactionStub('authorized'));

0 commit comments

Comments
 (0)