Skip to content

Commit b9f0a11

Browse files
committed
Merge branch 'MC-41975' of https://github.com/magento-l3/magento2ce into TANGO_PR-05-11-2021_24
2 parents 5f05166 + 0501b26 commit b9f0a11

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed

app/code/Magento/Paypal/Controller/Transparent/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
use Magento\Paypal\Model\Payflow\Service\Response\Validator\ResponseValidator;
1919
use Magento\Paypal\Model\Payflow\Transparent;
2020
use Magento\Sales\Api\PaymentFailuresInterface;
21-
use Magento\Framework\Session\Generic as Session;
21+
use Magento\Checkout\Model\Session;
2222
use Magento\Framework\App\Action\HttpPostActionInterface;
2323

2424
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
9+
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
10+
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
11+
<actionGroup name="StorefrontCheckoutSelectPaypalPaymentMethodActionGroup">
12+
<annotations>
13+
<description>Select Paypal payment method on onepage checkout</description>
14+
</annotations>
15+
<arguments>
16+
<argument name="paymentMethod" defaultValue="{{StorefrontPaypalCheckoutSection.creditCard}}" type="string"/>
17+
</arguments>
18+
<click selector="{{paymentMethod}}" stepKey="selectPaypalPaymentMethod"/>
19+
<waitForPageLoad stepKey="waitForPaypalFormLoad"/>
20+
<scrollTo selector="{{paymentMethod}}" stepKey="scrollToCreditCardSection"/>
21+
</actionGroup>
22+
</actionGroups>

app/code/Magento/Paypal/Test/Unit/Controller/Transparent/ResponseTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use Magento\Framework\DataObject;
1414
use Magento\Framework\Exception\LocalizedException;
1515
use Magento\Framework\Registry;
16-
use Magento\Framework\Session\Generic as Session;
16+
use Magento\Checkout\Model\Session;
1717
use Magento\Framework\View\Layout\ProcessorInterface;
1818
use Magento\Framework\View\Result\Layout;
1919
use Magento\Framework\View\Result\LayoutFactory;

dev/tests/integration/testsuite/Magento/Paypal/Controller/Transparent/ResponseTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use Magento\Framework\Api\SearchCriteriaBuilder;
1212
use Magento\Framework\Exception\NoSuchEntityException;
1313
use Magento\Framework\Intl\DateTimeFactory;
14-
use Magento\Framework\Session\Generic as GenericSession;
1514
use Magento\Quote\Api\CartRepositoryInterface;
1615
use Magento\Quote\Api\Data\CartInterface;
1716
use Magento\Quote\Api\PaymentMethodManagementInterface;
@@ -59,7 +58,7 @@ public function testPaymentCcExpirationDate(
5958
$this->getRequest()->setPostValue($postData);
6059
$this->getRequest()->setMethod('POST');
6160
/** @var Session $checkoutSession */
62-
$checkoutSession = $this->_objectManager->get(GenericSession::class);
61+
$checkoutSession = $this->_objectManager->get(Session::class);
6362
$checkoutSession->setQuoteId($quote->getId());
6463
$this->setCurrentDateTime($currentDateTime);
6564

0 commit comments

Comments
 (0)