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
Catalog
Test
TestStep
OpenProductsOnFrontendStep.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\TestStep
;
8
9
use Magento\Mtf\Client\BrowserInterface;
10
use Magento\Mtf\TestStep\TestStepInterface;
11
15
class
OpenProductsOnFrontendStep
implements
TestStepInterface
16
{
22
protected
$products
= [];
23
29
protected
$browser
;
30
38
public
function
__construct
(array
$products
, BrowserInterface
$browser
)
39
{
40
$this->products =
$products
;
41
$this->browser =
$browser
;
42
}
43
49
public
function
run
()
50
{
51
foreach
($this->products as
$product
) {
52
$this->browser->open($_ENV[
'app_frontend_url'
] .
$product
->getUrlKey() .
'.html'
);
53
}
54
}
55
}
Magento\Catalog\Test\TestStep\OpenProductsOnFrontendStep
Definition:
OpenProductsOnFrontendStep.php:15
Magento\Catalog\Test\TestStep
Definition:
AddAttributeToAttributeSetStep.php:7
Magento\Catalog\Test\TestStep\OpenProductsOnFrontendStep\$browser
$browser
Definition:
OpenProductsOnFrontendStep.php:29
$product
$product
Definition:
bundle_product_with_not_visible_children.php:22
Magento\Catalog\Test\TestStep\OpenProductsOnFrontendStep\run
run()
Definition:
OpenProductsOnFrontendStep.php:49
Magento\Catalog\Test\TestStep\OpenProductsOnFrontendStep\$products
$products
Definition:
OpenProductsOnFrontendStep.php:22
Magento\Catalog\Test\TestStep\OpenProductsOnFrontendStep\__construct
__construct(array $products, BrowserInterface $browser)
Definition:
OpenProductsOnFrontendStep.php:38