File tree Expand file tree Collapse file tree 4 files changed +25
-4
lines changed
Unit/Controller/Transparent
dev/tests/integration/testsuite/Magento/Paypal/Controller/Transparent Expand file tree Collapse file tree 4 files changed +25
-4
lines changed Original file line number Diff line number Diff line change 18
18
use Magento \Paypal \Model \Payflow \Service \Response \Validator \ResponseValidator ;
19
19
use Magento \Paypal \Model \Payflow \Transparent ;
20
20
use Magento \Sales \Api \PaymentFailuresInterface ;
21
- use Magento \Framework \ Session \ Generic as Session ;
21
+ use Magento \Checkout \ Model \ Session ;
22
22
use Magento \Framework \App \Action \HttpPostActionInterface ;
23
23
24
24
/**
Original file line number Diff line number Diff line change
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 >
Original file line number Diff line number Diff line change 13
13
use Magento \Framework \DataObject ;
14
14
use Magento \Framework \Exception \LocalizedException ;
15
15
use Magento \Framework \Registry ;
16
- use Magento \Framework \ Session \ Generic as Session ;
16
+ use Magento \Checkout \ Model \ Session ;
17
17
use Magento \Framework \View \Layout \ProcessorInterface ;
18
18
use Magento \Framework \View \Result \Layout ;
19
19
use Magento \Framework \View \Result \LayoutFactory ;
Original file line number Diff line number Diff line change 11
11
use Magento \Framework \Api \SearchCriteriaBuilder ;
12
12
use Magento \Framework \Exception \NoSuchEntityException ;
13
13
use Magento \Framework \Intl \DateTimeFactory ;
14
- use Magento \Framework \Session \Generic as GenericSession ;
15
14
use Magento \Quote \Api \CartRepositoryInterface ;
16
15
use Magento \Quote \Api \Data \CartInterface ;
17
16
use Magento \Quote \Api \PaymentMethodManagementInterface ;
@@ -59,7 +58,7 @@ public function testPaymentCcExpirationDate(
59
58
$ this ->getRequest ()->setPostValue ($ postData );
60
59
$ this ->getRequest ()->setMethod ('POST ' );
61
60
/** @var Session $checkoutSession */
62
- $ checkoutSession = $ this ->_objectManager ->get (GenericSession ::class);
61
+ $ checkoutSession = $ this ->_objectManager ->get (Session ::class);
63
62
$ checkoutSession ->setQuoteId ($ quote ->getId ());
64
63
$ this ->setCurrentDateTime ($ currentDateTime );
65
64
You can’t perform that action at this time.
0 commit comments