Skip to content

Commit f4e6ee2

Browse files
author
Dmytro Aponasenko
committed
MTA-1502: Sync qmt repository with mainline - Sprint 5
- updated PHPDocs
1 parent 3e9f3b1 commit f4e6ee2

File tree

5 files changed

+13
-20
lines changed

5 files changed

+13
-20
lines changed

dev/tests/functional/tests/app/Magento/Multishipping/Test/Block/Checkout/Addresses.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ class Addresses extends Block
3030

3131
/**
3232
* Add new customer address.
33+
*
34+
* @return void
3335
*/
3436
public function addNewAddress()
3537
{
@@ -40,6 +42,7 @@ public function addNewAddress()
4042
* Select shipping addresses for products.
4143
*
4244
* @param array $bindings
45+
* @return void
4346
*/
4447
public function selectAddresses($bindings)
4548
{

dev/tests/functional/tests/app/Magento/Multishipping/Test/Block/Checkout/Billing.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
use Magento\Mtf\Client\Locator;
1111

1212
/**
13-
* Class Shipping
1413
* Multishipping billing information
15-
*
1614
*/
1715
class Billing extends Form
1816
{
@@ -34,7 +32,7 @@ public function selectPaymentMethod(array $payment)
3432
$this->_rootElement->find('#p_method_' . $payment['method'], Locator::SELECTOR_CSS)->click();
3533
if (isset($payment['dataConfig']['payment_form_class'])) {
3634
$paymentFormClass = $payment['dataConfig']['payment_form_class'];
37-
/** @var $formBlock \Mtf\Block\Form */
35+
/** @var $formBlock \Magento\Mtf\Block\Form */
3836
$formBlock = $this->blockFactory->create(
3937
$paymentFormClass,
4038
['element' => $this->_rootElement->find('#payment_form_' . $payment['method'], Locator::SELECTOR_CSS)]

dev/tests/functional/tests/app/Magento/Multishipping/Test/Block/Checkout/Link.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
use Magento\Mtf\Block\Block;
1010

1111
/**
12-
* Class Link
1312
* Multishipping cart link
14-
*
1513
*/
1614
class Link extends Block
1715
{
1816
/**
1917
* Press 'Proceed to Checkout' link
18+
*
19+
* @return void
2020
*/
2121
public function multipleAddressesCheckout()
2222
{

dev/tests/functional/tests/app/Magento/Multishipping/Test/Block/Checkout/Overview.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66

77
namespace Magento\Multishipping\Test\Block\Checkout;
88

9-
use Magento\Multishipping\Test\Fixture\GuestPaypalDirect;
109
use Magento\Mtf\Block\Block;
11-
use Magento\Mtf\Client\Locator;
1210

1311
/**
14-
* Class Overview
1512
* Multishipping checkout overview information
16-
*
1713
*/
1814
class Overview extends Block
1915
{
@@ -27,12 +23,10 @@ class Overview extends Block
2723
/**
2824
* Place order
2925
*
30-
* @param GuestPaypalDirect $fixture
31-
*
32-
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
26+
* @return void
3327
*/
34-
public function placeOrder(GuestPaypalDirect $fixture = null)
28+
public function placeOrder()
3529
{
36-
$this->_rootElement->find($this->placeOrder, Locator::SELECTOR_CSS)->click();
30+
$this->_rootElement->find($this->placeOrder)->click();
3731
}
3832
}

dev/tests/functional/tests/app/Magento/Multishipping/Test/Block/Checkout/Success.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@
66

77
namespace Magento\Multishipping\Test\Block\Checkout;
88

9-
use Magento\Multishipping\Test\Fixture\GuestPaypalDirect;
109
use Magento\Mtf\Block\Block;
1110
use Magento\Mtf\Client\Locator;
1211

1312
/**
14-
* Class Success
1513
* Multishipping checkout success block
16-
*
1714
*/
1815
class Success extends Block
1916
{
@@ -33,6 +30,8 @@ class Success extends Block
3330

3431
/**
3532
* Fill shipping address
33+
*
34+
* @return void
3635
*/
3736
public function continueShopping()
3837
{
@@ -43,10 +42,10 @@ public function continueShopping()
4342
/**
4443
* Get ids for placed order
4544
*
46-
* @param GuestPaypalDirect $fixture
45+
* @param int $ordersNumber
4746
* @return array
4847
*/
49-
public function getOrderIds(GuestPaypalDirect $fixture)
48+
public function getOrderIds($ordersNumber)
5049
{
5150
$continueShopping = $this->_rootElement->find($this->continueShopping);
5251
$this->_rootElement->waitUntil(
@@ -55,7 +54,6 @@ function () use ($continueShopping) {
5554
}
5655
);
5756
$orderIds = [];
58-
$ordersNumber = count($fixture->getShippingMethods());
5957
for ($i = 1; $i <= $ordersNumber; $i++) {
6058
$orderIds[] = $this->_rootElement->find(
6159
'//a[' . $i . '][contains(@href, "view/order_id")]',

0 commit comments

Comments
 (0)