File tree Expand file tree Collapse file tree 5 files changed +13
-20
lines changed
dev/tests/functional/tests/app/Magento/Multishipping/Test/Block/Checkout Expand file tree Collapse file tree 5 files changed +13
-20
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ class Addresses extends Block
30
30
31
31
/**
32
32
* Add new customer address.
33
+ *
34
+ * @return void
33
35
*/
34
36
public function addNewAddress ()
35
37
{
@@ -40,6 +42,7 @@ public function addNewAddress()
40
42
* Select shipping addresses for products.
41
43
*
42
44
* @param array $bindings
45
+ * @return void
43
46
*/
44
47
public function selectAddresses ($ bindings )
45
48
{
Original file line number Diff line number Diff line change 10
10
use Magento \Mtf \Client \Locator ;
11
11
12
12
/**
13
- * Class Shipping
14
13
* Multishipping billing information
15
- *
16
14
*/
17
15
class Billing extends Form
18
16
{
@@ -34,7 +32,7 @@ public function selectPaymentMethod(array $payment)
34
32
$ this ->_rootElement ->find ('#p_method_ ' . $ payment ['method ' ], Locator::SELECTOR_CSS )->click ();
35
33
if (isset ($ payment ['dataConfig ' ]['payment_form_class ' ])) {
36
34
$ paymentFormClass = $ payment ['dataConfig ' ]['payment_form_class ' ];
37
- /** @var $formBlock \Mtf\Block\Form */
35
+ /** @var $formBlock \Magento\ Mtf\Block\Form */
38
36
$ formBlock = $ this ->blockFactory ->create (
39
37
$ paymentFormClass ,
40
38
['element ' => $ this ->_rootElement ->find ('#payment_form_ ' . $ payment ['method ' ], Locator::SELECTOR_CSS )]
Original file line number Diff line number Diff line change 9
9
use Magento \Mtf \Block \Block ;
10
10
11
11
/**
12
- * Class Link
13
12
* Multishipping cart link
14
- *
15
13
*/
16
14
class Link extends Block
17
15
{
18
16
/**
19
17
* Press 'Proceed to Checkout' link
18
+ *
19
+ * @return void
20
20
*/
21
21
public function multipleAddressesCheckout ()
22
22
{
Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Multishipping \Test \Block \Checkout ;
8
8
9
- use Magento \Multishipping \Test \Fixture \GuestPaypalDirect ;
10
9
use Magento \Mtf \Block \Block ;
11
- use Magento \Mtf \Client \Locator ;
12
10
13
11
/**
14
- * Class Overview
15
12
* Multishipping checkout overview information
16
- *
17
13
*/
18
14
class Overview extends Block
19
15
{
@@ -27,12 +23,10 @@ class Overview extends Block
27
23
/**
28
24
* Place order
29
25
*
30
- * @param GuestPaypalDirect $fixture
31
- *
32
- * @SuppressWarnings(PHPMD.UnusedFormalParameter)
26
+ * @return void
33
27
*/
34
- public function placeOrder (GuestPaypalDirect $ fixture = null )
28
+ public function placeOrder ()
35
29
{
36
- $ this ->_rootElement ->find ($ this ->placeOrder , Locator:: SELECTOR_CSS )->click ();
30
+ $ this ->_rootElement ->find ($ this ->placeOrder )->click ();
37
31
}
38
32
}
Original file line number Diff line number Diff line change 6
6
7
7
namespace Magento \Multishipping \Test \Block \Checkout ;
8
8
9
- use Magento \Multishipping \Test \Fixture \GuestPaypalDirect ;
10
9
use Magento \Mtf \Block \Block ;
11
10
use Magento \Mtf \Client \Locator ;
12
11
13
12
/**
14
- * Class Success
15
13
* Multishipping checkout success block
16
- *
17
14
*/
18
15
class Success extends Block
19
16
{
@@ -33,6 +30,8 @@ class Success extends Block
33
30
34
31
/**
35
32
* Fill shipping address
33
+ *
34
+ * @return void
36
35
*/
37
36
public function continueShopping ()
38
37
{
@@ -43,10 +42,10 @@ public function continueShopping()
43
42
/**
44
43
* Get ids for placed order
45
44
*
46
- * @param GuestPaypalDirect $fixture
45
+ * @param int $ordersNumber
47
46
* @return array
48
47
*/
49
- public function getOrderIds (GuestPaypalDirect $ fixture )
48
+ public function getOrderIds ($ ordersNumber )
50
49
{
51
50
$ continueShopping = $ this ->_rootElement ->find ($ this ->continueShopping );
52
51
$ this ->_rootElement ->waitUntil (
@@ -55,7 +54,6 @@ function () use ($continueShopping) {
55
54
}
56
55
);
57
56
$ orderIds = [];
58
- $ ordersNumber = count ($ fixture ->getShippingMethods ());
59
57
for ($ i = 1 ; $ i <= $ ordersNumber ; $ i ++) {
60
58
$ orderIds [] = $ this ->_rootElement ->find (
61
59
'//a[ ' . $ i . '][contains(@href, "view/order_id")] ' ,
You can’t perform that action at this time.
0 commit comments