Skip to content

Commit 8a85f91

Browse files
author
Yushkin, Dmytro
committed
MAGETWO-45303: Redirect to blank page when canceling checkout with PayPal Express in Website Payments Pro Hosted Solution
- Edit integration test
1 parent fbd54af commit 8a85f91

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

dev/tests/integration/testsuite/Magento/Paypal/Controller/HostedproTest.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,6 @@
1010
*/
1111
class HostedproTest extends \Magento\TestFramework\TestCase\AbstractController
1212
{
13-
public function testCancelActionIsContentGenerated()
14-
{
15-
$order = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create('Magento\Sales\Model\Order');
16-
$order->load('100000001', 'increment_id');
17-
$order->getPayment()->setMethod(\Magento\Paypal\Model\Config::METHOD_HOSTEDPRO);
18-
19-
$quote = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
20-
'Magento\Quote\Model\Quote'
21-
)->setStoreId(
22-
$order->getStoreId()
23-
)->save();
24-
25-
$order->setQuoteId($quote->getId());
26-
$order->save();
27-
28-
$session = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get('Magento\Checkout\Model\Session');
29-
$session->setLastRealOrderId($order->getRealOrderId())->setLastQuoteId($order->getQuoteId());
30-
31-
$this->dispatch('paypal/hostedpro/cancel');
32-
$this->assertContains("goToSuccessPage = ''", $this->getResponse()->getBody());
33-
}
34-
3513
/**
3614
* @magentoDataFixture Magento/Paypal/_files/quote_payment_express.php
3715
* @magentoConfigFixture current_store payment/paypal_hostedpro/active 1

0 commit comments

Comments
 (0)