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
ConfigureProductsStep.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
15
class
ConfigureProductsStep
implements
TestStepInterface
16
{
22
protected
$products
= [];
23
29
protected
$orderCreateIndex
;
30
36
public
function
__construct
(array
$products
, OrderCreateIndex
$orderCreateIndex
)
37
{
38
$this->products =
$products
;
39
$this->orderCreateIndex =
$orderCreateIndex
;
40
}
41
47
public
function
run
()
48
{
49
$orderPage =
$this->orderCreateIndex
;
50
foreach
($this->products as
$product
) {
51
$orderPage->getCreateBlock()->getItemsBlock()->getItemProductByName(
$product
->getName())->configure();
52
$orderPage->getConfigureProductBlock()->configProduct(
$product
);
53
}
54
$orderPage->getCreateBlock()->updateItems();
55
}
56
}
Magento\Sales\Test\TestStep\ConfigureProductsStep\__construct
__construct(array $products, OrderCreateIndex $orderCreateIndex)
Definition:
ConfigureProductsStep.php:36
Magento\Sales\Test\TestStep
Definition:
AcceptPaymentStep.php:6
Magento\Sales\Test\TestStep\ConfigureProductsStep\$products
$products
Definition:
ConfigureProductsStep.php:22
Magento\Sales\Test\TestStep\ConfigureProductsStep
Definition:
ConfigureProductsStep.php:15
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Sales\Test\TestStep\ConfigureProductsStep\$orderCreateIndex
$orderCreateIndex
Definition:
ConfigureProductsStep.php:29
Magento\Sales\Test\TestStep\ConfigureProductsStep\run
run()
Definition:
ConfigureProductsStep.php:47