File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
dev/tests/integration/testsuite/Magento/Paypal/Controller Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 10
10
*/
11
11
class HostedproTest extends \Magento \TestFramework \TestCase \AbstractController
12
12
{
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
-
35
13
/**
36
14
* @magentoDataFixture Magento/Paypal/_files/quote_payment_express.php
37
15
* @magentoConfigFixture current_store payment/paypal_hostedpro/active 1
You can’t perform that action at this time.
0 commit comments