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
Sales
Test
TestStep
SelectShippingMethodForOrderStep.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Sales\Test\TestStep
;
8
9
use Magento\Sales\Test\Page\Adminhtml\OrderCreateIndex;
10
use Magento\Mtf\TestStep\TestStepInterface;
11
16
class
SelectShippingMethodForOrderStep
implements
TestStepInterface
17
{
23
protected
$orderCreateIndex
;
24
30
protected
$shipping
;
31
37
public
function
__construct
(OrderCreateIndex
$orderCreateIndex
, array
$shipping
=
null
)
38
{
39
$this->orderCreateIndex =
$orderCreateIndex
;
40
$this->shipping =
$shipping
;
41
}
42
48
public
function
run
()
49
{
50
if
($this->shipping[
'shipping_service'
] !==
null
) {
51
$this->orderCreateIndex->getCreateBlock()->selectShippingMethod($this->shipping);
52
}
53
54
return
[
'shipping'
=>
$this->shipping
];
55
}
56
}
Magento\Sales\Test\TestStep
Definition:
AcceptPaymentStep.php:6
Magento\Sales\Test\TestStep\SelectShippingMethodForOrderStep
Definition:
SelectShippingMethodForOrderStep.php:16
Magento\Sales\Test\TestStep\SelectShippingMethodForOrderStep\__construct
__construct(OrderCreateIndex $orderCreateIndex, array $shipping=null)
Definition:
SelectShippingMethodForOrderStep.php:37
Magento\Sales\Test\TestStep\SelectShippingMethodForOrderStep\$orderCreateIndex
$orderCreateIndex
Definition:
SelectShippingMethodForOrderStep.php:23
Magento\Sales\Test\TestStep\SelectShippingMethodForOrderStep\$shipping
$shipping
Definition:
SelectShippingMethodForOrderStep.php:30
Magento\Sales\Test\TestStep\SelectShippingMethodForOrderStep\run
run()
Definition:
SelectShippingMethodForOrderStep.php:48