Skip to content

Commit 14bca5a

Browse files
committed
MC-13775: [2.2.x] Accept.js for Auth.net
1 parent 3ff276a commit 14bca5a

File tree

54 files changed

+53
-65
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+53
-65
lines changed

app/code/Magento/AuthorizenetAcceptjs/Gateway/Config.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,6 @@ class Config extends \Magento\Payment\Gateway\Config\Config
3333
const SOLUTION_ID_SANDBOX = 'AAA102993';
3434
const SOLUTION_ID_PRODUCTION = 'AAA175350';
3535

36-
/**
37-
* @param ScopeConfigInterface $scopeConfig
38-
* @param null|string $methodCode
39-
* @param string $pathPattern
40-
*/
41-
public function __construct(
42-
ScopeConfigInterface $scopeConfig,
43-
$methodCode = null,
44-
$pathPattern = self::DEFAULT_PATH_PATTERN
45-
) {
46-
parent::__construct($scopeConfig, $methodCode, $pathPattern);
47-
}
48-
4936
/**
5037
* Gets the login id
5138
*

app/code/Magento/AuthorizenetAcceptjs/Test/Mftf/ActionGroup/ConfigureAuthorizenetAcceptjsActionGroup.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
<selectOption selector="{{AdminAuthorizenetAcceptjsConfigurationSection.enabledDefaultSelect}}" userInput="Yes" stepKey="fillExpYear"/>
3030
<scrollToTopOfPage stepKey="scrollToTopOfPage" />
3131
<click selector="{{AdminMainActionsSection.save}}" stepKey="clickOnSave"/>
32-
<see selector="{{AdminMessagesSection.successMessage}}" userInput="You saved the configuration." stepKey="waitForSuccessMessage"/>
32+
<waitForElementVisible selector="{{AdminMessagesSection.successMessage}}" stepKey="waitForSuccessMessageAppears"/>
33+
<see selector="{{AdminMessagesSection.successMessage}}" userInput="You saved the configuration." stepKey="seeSuccessMessage"/>
3334
</actionGroup>
3435
<actionGroup name="DisableAuthorizenetAcceptjs">
3536
<magentoCLI command="config:set {{AuthorizenetAcceptjsConfigData.path}} {{AuthorizenetAcceptjsConfigData.value}}" stepKey="disableAuthorizenetAcceptjs"/>

app/code/Magento/AuthorizenetAcceptjs/Test/Mftf/ActionGroup/FillPaymentInformationActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
-->
88
<actionGroups xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
10-
<actionGroup name="StorefrontFillPaymentInformation">
10+
<actionGroup name="StorefrontFillAuthorizenetPaymentInformation">
1111
<click selector="{{StorefrontAuthorizenetCheckoutSection.selectAuthorizenet}}" stepKey="clickOnAuthorizenetToggle"/>
1212
<waitForPageLoad stepKey="waitForCardDataSection"/>
1313
<fillField selector="{{StorefrontAuthorizenetCheckoutSection.cardInput}}" userInput="{{PaymentInfo.cardNumber}}" stepKey="fillCardNumber"/>

app/code/Magento/AuthorizenetAcceptjs/Test/Mftf/Test/FullCaptureAuthorizenetAcceptjsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
<actionGroup ref="CheckoutSelectShippingMethodActionGroup" stepKey="selectFlatRateShipping">
6262
<argument name="shippingMethod" value="Flat Rate"/>
6363
</actionGroup>
64-
<actionGroup ref="StorefrontFillPaymentInformation" stepKey="fillPaymentInfo"/>
64+
<actionGroup ref="StorefrontFillAuthorizenetPaymentInformation" stepKey="fillPaymentInfo"/>
6565

6666
<!-- Place Order -->
6767
<actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="customerPlaceOrder">

app/code/Magento/AuthorizenetAcceptjs/Test/Mftf/Test/GuestCheckoutVirtualProductAuthorizenetAcceptjsTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<actionGroup ref="GuestCheckoutAuthorizenetFillBillingAddress" stepKey="fillAddressForm">
5656
<argument name="customerAddress" value="CustomerAddressSimple"/>
5757
</actionGroup>
58-
<actionGroup ref="StorefrontFillPaymentInformation" stepKey="fillPaymentInfo"/>
58+
<actionGroup ref="StorefrontFillAuthorizenetPaymentInformation" stepKey="fillPaymentInfo"/>
5959
<!-- Place Order -->
6060
<actionGroup ref="CheckoutPlaceOrderActionGroup" stepKey="customerPlaceOrder">
6161
<argument name="orderNumberMessage" value="CONST.successGuestCheckoutOrderNumberMessage"/>

app/code/Magento/AuthorizenetAcceptjs/Test/Unit/Block/InfoTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
2121

2222
/**
23-
* Test for Magento\AuthorizenetAcceptjs\Test\Unit\Block\InfoTest
23+
* Test for Magento\AuthorizenetAcceptjs\Block\InfoTest
2424
*/
2525
class InfoTest extends TestCase
2626
{

app/code/Magento/AuthorizenetAcceptjs/Test/Unit/Block/PaymentTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
1818

1919
/**
20-
* Test for Magento\AuthorizenetAcceptjs\Test\Unit\Block\Payment
20+
* Test for Magento\AuthorizenetAcceptjs\Block\Payment
2121
*/
2222
class PaymentTest extends TestCase
2323
{

app/code/Magento/AuthorizenetAcceptjs/Test/Unit/Gateway/Command/AcceptPaymentStrategyCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use PHPUnit\Framework\TestCase;
2020

2121
/**
22-
* Test for Magento\AuthorizenetAcceptjs\Test\Unit\Gateway\Command\AcceptPaymentStrategyCommandTest
22+
* Test for Magento\AuthorizenetAcceptjs\Gateway\Command\AcceptPaymentStrategyCommandTest
2323
*/
2424
class AcceptPaymentStrategyCommandTest extends TestCase
2525
{

app/code/Magento/AuthorizenetAcceptjs/Test/Unit/Gateway/Command/CaptureStrategyCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
use Magento\Framework\TestFramework\Unit\Helper\ObjectManager;
2424

2525
/**
26-
* Test for Magento\AuthorizenetAcceptjs\Test\Unit\Gateway\Command\CaptureStrategyCommand
26+
* Test for Magento\AuthorizenetAcceptjs\Gateway\Command\CaptureStrategyCommand
2727
*/
2828
class CaptureStrategyCommandTest extends TestCase
2929
{

0 commit comments

Comments
 (0)