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
SaveAttributeOnProductPageStep.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\TestStep
;
8
9
use Magento\Mtf\ObjectManager;
10
use Magento\Mtf\TestStep\TestStepInterface;
11
use Magento\Catalog\Test\Fixture\CatalogProductAttribute;
12
use Magento\Catalog\Test\Page\Adminhtml\CatalogProductEdit;
13
17
class
SaveAttributeOnProductPageStep
implements
TestStepInterface
18
{
24
protected
$attribute
;
25
31
protected
$objectManager
;
32
38
protected
$catalogProductEdit
;
39
46
public
function
__construct
(
47
CatalogProductAttribute
$attribute
,
48
ObjectManager
$objectManager
,
49
CatalogProductEdit
$catalogProductEdit
50
) {
51
$this->attribute =
$attribute
;
52
$this->objectManager =
$objectManager
;
53
$this->catalogProductEdit =
$catalogProductEdit
;
54
}
55
61
public
function
run
()
62
{
63
$this->catalogProductEdit->getNewAttributeModal()->saveAttribute();
64
}
65
71
public
function
cleanup
()
72
{
73
$this->objectManager->create(
74
\
Magento
\Catalog\Test\TestStep\DeleteAttributeStep::class,
75
[
'attribute'
=> $this->attribute]
76
)->run();
77
}
78
}
Magento\Catalog\Test\TestStep\SaveAttributeOnProductPageStep\$attribute
$attribute
Definition:
SaveAttributeOnProductPageStep.php:24
Magento\Catalog\Test\TestStep
Definition:
AddAttributeToAttributeSetStep.php:7
Magento\Catalog\Test\TestStep\SaveAttributeOnProductPageStep\cleanup
cleanup()
Definition:
SaveAttributeOnProductPageStep.php:71
Magento\Catalog\Test\TestStep\SaveAttributeOnProductPageStep\run
run()
Definition:
SaveAttributeOnProductPageStep.php:61
Magento
Magento\Catalog\Test\TestStep\SaveAttributeOnProductPageStep\__construct
__construct(CatalogProductAttribute $attribute, ObjectManager $objectManager, CatalogProductEdit $catalogProductEdit)
Definition:
SaveAttributeOnProductPageStep.php:46
Magento\Catalog\Test\TestStep\SaveAttributeOnProductPageStep\$objectManager
$objectManager
Definition:
SaveAttributeOnProductPageStep.php:31
Magento\Catalog\Test\TestStep\SaveAttributeOnProductPageStep
Definition:
SaveAttributeOnProductPageStep.php:17
Magento\Catalog\Test\TestStep\SaveAttributeOnProductPageStep\$catalogProductEdit
$catalogProductEdit
Definition:
SaveAttributeOnProductPageStep.php:38