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
Checkout
Test
TestStep
FillShippingMethodStep.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Checkout\Test\TestStep
;
8
9
use Magento\Checkout\Test\Page\CheckoutOnepage;
10
use Magento\Mtf\TestStep\TestStepInterface;
11
16
class
FillShippingMethodStep
implements
TestStepInterface
17
{
23
protected
$checkoutOnepage
;
24
30
protected
$shipping
;
31
37
public
function
__construct
(CheckoutOnepage
$checkoutOnepage
, array
$shipping
= [])
38
{
39
$this->checkoutOnepage =
$checkoutOnepage
;
40
$this->shipping =
$shipping
;
41
}
42
48
public
function
run
()
49
{
50
if
(!empty($this->shipping)) {
51
$this->checkoutOnepage->getShippingMethodBlock()->selectShippingMethod($this->shipping);
52
$this->checkoutOnepage->getShippingMethodBlock()->clickContinue();
53
}
54
}
55
}
Magento\Checkout\Test\TestStep\FillShippingMethodStep\__construct
__construct(CheckoutOnepage $checkoutOnepage, array $shipping=[])
Definition:
FillShippingMethodStep.php:37
Magento\Checkout\Test\TestStep\FillShippingMethodStep\$checkoutOnepage
$checkoutOnepage
Definition:
FillShippingMethodStep.php:23
Magento\Checkout\Test\TestStep\FillShippingMethodStep
Definition:
FillShippingMethodStep.php:16
Magento\Checkout\Test\TestStep
Definition:
AddNewShippingAddressStep.php:7
Magento\Checkout\Test\TestStep\FillShippingMethodStep\$shipping
$shipping
Definition:
FillShippingMethodStep.php:30
Magento\Checkout\Test\TestStep\FillShippingMethodStep\run
run()
Definition:
FillShippingMethodStep.php:48