Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
magento2-base
dev
tests
functional
tests
app
Magento
Multishipping
Test
TestStep
FillShippingInformationStep.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Multishipping\Test\TestStep
;
7
8
use
Magento\Customer\Test\Fixture\Customer
;
9
use Magento\Multishipping\Test\Page\MultishippingCheckoutShipping;
10
use Magento\Mtf\TestStep\TestStepInterface;
11
15
class
FillShippingInformationStep
implements
TestStepInterface
16
{
22
protected
$shippingInformation
;
23
29
protected
$customer
;
30
36
protected
$shippingMethod
;
37
43
public
function
__construct
(
44
MultishippingCheckoutShipping
$shippingInformation
,
45
Customer
$customer
,
46
array
$shippingMethod
47
) {
48
$this->shippingInformation =
$shippingInformation
;
49
$this->shippingMethod =
$shippingMethod
;
50
$this->customer =
$customer
;
51
}
52
58
public
function
run
()
59
{
60
$shippingMethods = [];
61
for
(
$i
= 0;
$i
< count($this->customer->getAddress());
$i
++) {
62
$shippingMethods[] =
$this->shippingMethod
;
63
}
64
$this->shippingInformation->getShippingBlock()->selectShippingMethod($shippingMethods);
65
}
66
}
Magento\Multishipping\Test\TestStep\FillShippingInformationStep\__construct
__construct(MultishippingCheckoutShipping $shippingInformation, Customer $customer, array $shippingMethod)
Definition:
FillShippingInformationStep.php:43
Magento\Multishipping\Test\TestStep\FillShippingInformationStep\$shippingInformation
$shippingInformation
Definition:
FillShippingInformationStep.php:22
Magento\Multishipping\Test\TestStep\FillShippingInformationStep\$customer
$customer
Definition:
FillShippingInformationStep.php:29
Magento\Multishipping\Test\TestStep\FillShippingInformationStep\$shippingMethod
$shippingMethod
Definition:
FillShippingInformationStep.php:36
Magento\Multishipping\Test\TestStep\FillShippingInformationStep
Definition:
FillShippingInformationStep.php:15
Magento\Customer\Test\Fixture\Customer
Definition:
Address.php:7
Magento\Multishipping\Test\TestStep
Definition:
FillCustomerAddressesStep.php:6
$i
$i
Definition:
gallery.phtml:31
Magento\Multishipping\Test\TestStep\FillShippingInformationStep\run
run()
Definition:
FillShippingInformationStep.php:58