Skip to content

Commit b9ec499

Browse files
committed
MAGETWO-54499: PayPal Payments Configuration UX Update
- Fixed phpdocs in functional tests for conflict resolution
1 parent 9c141a9 commit b9ec499

File tree

14 files changed

+111
-31
lines changed

14 files changed

+111
-31
lines changed

dev/tests/functional/tests/app/Magento/Backend/Test/Block/System/Config/Payments.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,22 @@
88

99
use Magento\Mtf\Block\Block;
1010

11+
/**
12+
* Class Payments
13+
* Payments configuration block on Stores > Configuration > Sales > Payment Methods page
14+
*/
1115
class Payments extends Block
1216
{
1317
/**
18+
* Merchant Country selector.
19+
*
1420
* @var string
1521
*/
1622
protected $merchantCountrySelector = "select[id$='_account_merchant_country'] > option[value='%s']";
1723

1824
/**
25+
* Solution title(e.g. PayPal Express Checkout, Payments Advanced, etc.) selector
26+
*
1927
* @var string
2028
*/
2129
protected $solutionTitle = './strong[contains(text(), "%s")]';

dev/tests/functional/tests/app/Magento/Braintree/Test/Block/System/Config/Braintree.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
class Braintree extends Block
1616
{
1717
/**
18+
* Braintree credentials fields sectors array.
19+
*
1820
* @var array
1921
*/
2022
private $fields = [
@@ -24,6 +26,8 @@ class Braintree extends Block
2426
];
2527

2628
/**
29+
* Braintree enablers fields sectors array.
30+
*
2731
* @var array
2832
*/
2933
private $enablers = [
@@ -33,6 +37,8 @@ class Braintree extends Block
3337
];
3438

3539
/**
40+
* Braintree 'Configure' button.
41+
*
3642
* @var string
3743
*/
3844
private $configureBraintreeButton = '#payment_us_braintree_section_braintree-head';

dev/tests/functional/tests/app/Magento/Braintree/Test/TestStep/CheckBraintreeConfigStep.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
class CheckBraintreeConfigStep implements TestStepInterface
2020
{
2121
/**
22+
* Payments configuration page.
23+
*
2224
* @var SystemConfigEditSectionPayment
2325
*/
2426
private $systemConfigEditSectionPayment;
@@ -44,12 +46,16 @@ class CheckBraintreeConfigStep implements TestStepInterface
4446
private $assertFieldsAreEnabled;
4547

4648
/**
47-
* @var
49+
* Country code.
50+
*
51+
* @var string
4852
*/
4953
private $countryCode;
5054

5155
/**
52-
* @var
56+
* Payment sections on Payments configuration page.
57+
*
58+
* @var array
5359
*/
5460
private $sections;
5561

@@ -64,8 +70,8 @@ class CheckBraintreeConfigStep implements TestStepInterface
6470
* @param AssertFieldsArePresent $assertFieldsArePresent
6571
* @param AssertFieldsAreActive $assertFieldsAreActive
6672
* @param AssertFieldsAreEnabled $assertFieldsAreEnabled
67-
* @param $countryCode
68-
* @param $sections
73+
* @param string $countryCode
74+
* @param array $sections
6975
*/
7076
public function __construct(
7177
SystemConfigEditSectionPayment $systemConfigEditSectionPayment,
@@ -74,7 +80,7 @@ public function __construct(
7480
AssertFieldsAreActive $assertFieldsAreActive,
7581
AssertFieldsAreEnabled $assertFieldsAreEnabled,
7682
$countryCode,
77-
$sections
83+
array $sections
7884
) {
7985
$this->systemConfigEditSectionPayment = $systemConfigEditSectionPayment;
8086
$this->assertFieldsAreDisabled = $assertFieldsAreDisabled;

dev/tests/functional/tests/app/Magento/Payment/Test/TestCase/ConflictResolutionTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
99
xsi:noNamespaceSchemaLocation="../../../../../../vendor/magento/mtf/etc/variations.xsd">
1010
<testCase name="Magento\Payment\Test\TestCase\ConflictResolutionTest" summary="Conflict resolution for US"
11-
ticketId="MAGETWO-55707, 38531">
11+
ticketId="MAGETWO-55707, MAGETWO-38531">
1212
<variation name="ConflictResolutionTestVariation1">
1313
<data name="countryCode" xsi:type="string">US</data>
1414
<data name="sections" xsi:type="array">

dev/tests/functional/tests/app/Magento/Paypal/Test/Block/System/Config/ExpressCheckout.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
class ExpressCheckout extends Block
1616
{
1717
/**
18+
* PayPal Express Checkout credentials fields sectors array.
19+
*
1820
* @var array
1921
*/
2022
private $fields = [
@@ -33,6 +35,8 @@ class ExpressCheckout extends Block
3335
];
3436

3537
/**
38+
* PayPal Express Checkout enablers fields sectors array.
39+
*
3640
* @var array
3741
*/
3842
private $enablers = [
@@ -45,6 +49,8 @@ class ExpressCheckout extends Block
4549
];
4650

4751
/**
52+
* PayPal Express Checkout 'Configure' button selector.
53+
*
4854
* @var string
4955
*/
5056
private $configureExpressButton = '#payment_us_paypal_alternative_payment_methods_express_checkout_us-head';

dev/tests/functional/tests/app/Magento/Paypal/Test/Block/System/Config/PayflowLink.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
class PayflowLink extends Block
1616
{
1717
/**
18+
* Payflow Link credentials fields sectors array.
19+
*
1820
* @var array
1921
*/
2022
private $fields = [
@@ -31,6 +33,8 @@ class PayflowLink extends Block
3133
];
3234

3335
/**
36+
* Payflow Link enablers fields sectors array.
37+
*
3438
* @var array
3539
*/
3640
private $enablers = [
@@ -43,6 +47,8 @@ class PayflowLink extends Block
4347
];
4448

4549
/**
50+
* Payflow Link 'Configure' button selector.
51+
*
4652
* @var string
4753
*/
4854
private $configurePayflowLinkButton = '#payment_us_paypal_payment_gateways_payflow_link_us-head';

dev/tests/functional/tests/app/Magento/Paypal/Test/Block/System/Config/PayflowPro.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
class PayflowPro extends Block
1616
{
1717
/**
18+
* Payflow Pro credentials fields sectors array.
19+
*
1820
* @var array
1921
*/
2022
private $fields = [
@@ -31,6 +33,8 @@ class PayflowPro extends Block
3133
];
3234

3335
/**
36+
* Payflow Pro enablers fields sectors array.
37+
*
3438
* @var array
3539
*/
3640
private $enablers = [
@@ -43,6 +47,8 @@ class PayflowPro extends Block
4347
];
4448

4549
/**
50+
* Payflow Pro 'Configure' button selector.
51+
*
4652
* @var string
4753
*/
4854
private $configureProButton = '#payment_us_paypal_payment_gateways_paypal_payflowpro_with_express_checkout-head';

dev/tests/functional/tests/app/Magento/Paypal/Test/Block/System/Config/PaymentsAdvanced.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
class PaymentsAdvanced extends Block
1616
{
1717
/**
18+
* Payments Advanced credentials fields sectors array.
19+
*
1820
* @var array
1921
*/
2022
private $fields = [
@@ -27,6 +29,8 @@ class PaymentsAdvanced extends Block
2729
];
2830

2931
/**
32+
* Payments Advanced enablers fields sectors array.
33+
*
3034
* @var array
3135
*/
3236
private $enablers = [
@@ -37,6 +41,8 @@ class PaymentsAdvanced extends Block
3741
];
3842

3943
/**
44+
* Payments Advanced 'Configure' button selector.
45+
*
4046
* @var string
4147
*/
4248
private $configureAdvancedButton = '#payment_us_paypal_group_all_in_one_payflow_advanced-head';

dev/tests/functional/tests/app/Magento/Paypal/Test/Block/System/Config/PaymentsPro.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
class PaymentsPro extends Block
1616
{
1717
/**
18+
* Payments Pro enablers fields sectors array.
19+
*
1820
* @var array
1921
*/
2022
private $fields = [
@@ -31,6 +33,8 @@ class PaymentsPro extends Block
3133
];
3234

3335
/**
36+
* Payments Pro enablers fields sectors array.
37+
*
3438
* @var array
3539
*/
3640
private $enablers = [
@@ -43,6 +47,8 @@ class PaymentsPro extends Block
4347
];
4448

4549
/**
50+
* Payments Pro 'Configure' button selector.
51+
*
4652
* @var string
4753
*/
4854
private $configureProButton = '#payment_us_paypal_group_all_in_one_wpp_usuk-head';

dev/tests/functional/tests/app/Magento/Paypal/Test/TestStep/CheckExpressConfigStep.php

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
class CheckExpressConfigStep implements TestStepInterface
2020
{
2121
/**
22+
* Payments configuration page.
23+
*
2224
* @var SystemConfigEditSectionPayment
2325
*/
2426
private $systemConfigEditSectionPayment;
@@ -44,12 +46,16 @@ class CheckExpressConfigStep implements TestStepInterface
4446
private $assertFieldsAreEnabled;
4547

4648
/**
47-
* @var
49+
* Country code.
50+
*
51+
* @var string
4852
*/
4953
private $countryCode;
5054

5155
/**
52-
* @var
56+
* Payment sections on Payments configuration page.
57+
*
58+
* @var array
5359
*/
5460
private $sections;
5561

@@ -64,8 +70,8 @@ class CheckExpressConfigStep implements TestStepInterface
6470
* @param AssertFieldsArePresent $assertFieldsArePresent
6571
* @param AssertFieldsAreActive $assertFieldsAreActive
6672
* @param AssertFieldsAreEnabled $assertFieldsAreEnabled
67-
* @param $countryCode
68-
* @param $sections
73+
* @param string $countryCode
74+
* @param array $sections
6975
*/
7076
public function __construct(
7177
SystemConfigEditSectionPayment $systemConfigEditSectionPayment,
@@ -74,7 +80,7 @@ public function __construct(
7480
AssertFieldsAreActive $assertFieldsAreActive,
7581
AssertFieldsAreEnabled $assertFieldsAreEnabled,
7682
$countryCode,
77-
$sections
83+
array $sections
7884
) {
7985
$this->systemConfigEditSectionPayment = $systemConfigEditSectionPayment;
8086
$this->assertFieldsAreDisabled = $assertFieldsAreDisabled;

0 commit comments

Comments
 (0)