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