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
FillAttributeFormOnProductPageStep.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\TestStep
;
8
9
use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
10
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
11
use Magento\Mtf\TestStep\TestStepInterface;
12
16
class
FillAttributeFormOnProductPageStep
implements
TestStepInterface
17
{
23
protected
$attribute
;
24
30
protected
$catalogProductEdit
;
31
37
public
function
__construct
(CatalogProductAttribute
$attribute
, CatalogProductEdit
$catalogProductEdit
)
38
{
39
$this->attribute =
$attribute
;
40
$this->catalogProductEdit =
$catalogProductEdit
;
41
}
42
48
public
function
run
()
49
{
50
$this->catalogProductEdit->getProductForm()->getAttributeForm()->fill($this->attribute);
51
return
[
'attribute'
=>
$this->attribute
];
52
}
53
}
Magento\Catalog\Test\TestStep\FillAttributeFormOnProductPageStep\$catalogProductEdit
$catalogProductEdit
Definition:
FillAttributeFormOnProductPageStep.php:30
Magento\Catalog\Test\TestStep\FillAttributeFormOnProductPageStep\$attribute
$attribute
Definition:
FillAttributeFormOnProductPageStep.php:23
Magento\Catalog\Test\TestStep
Definition:
AddAttributeToAttributeSetStep.php:7
Magento\Catalog\Test\TestStep\FillAttributeFormOnProductPageStep
Definition:
FillAttributeFormOnProductPageStep.php:16
Magento\Catalog\Test\TestStep\FillAttributeFormOnProductPageStep\run
run()
Definition:
FillAttributeFormOnProductPageStep.php:48
Magento\Catalog\Test\TestStep\FillAttributeFormOnProductPageStep\__construct
__construct(CatalogProductAttribute $attribute, CatalogProductEdit $catalogProductEdit)
Definition:
FillAttributeFormOnProductPageStep.php:37