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
Block
Adminhtml
Product
Modal
NewAttribute.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\Catalog\Test\Block\Adminhtml\Product\Modal
;
8
9
use
Magento\Ui\Test\Block\Adminhtml\FormSections
;
10
use
Magento\Backend\Test\Block\FormPageActions
;
11
use Magento\Mtf\Client\Locator;
12
16
class
NewAttribute
extends
FormSections
17
{
23
private
$newAttributeBlock =
'//*[@data-role="modal"][.//input[@name="frontend_label[0]"]]'
;
24
30
protected
function
getFormPageActionsBlock
()
31
{
32
return
$this->blockFactory->create(
33
\
Magento
\Backend\Test\Block\FormPageActions::class,
34
[
'element'
=> $this->_rootElement->find($this->newAttributeBlock, Locator::SELECTOR_XPATH)]
35
);
36
}
37
43
public
function
saveAttribute
()
44
{
45
$this->
getFormPageActionsBlock
()->save();
46
}
47
}
Magento\Catalog\Test\Block\Adminhtml\Product\Modal\NewAttribute\saveAttribute
saveAttribute()
Definition:
NewAttribute.php:43
Magento\Backend\Test\Block\FormPageActions
Definition:
FormPageActions.php:17
Magento\Catalog\Test\Block\Adminhtml\Product\Modal\NewAttribute\getFormPageActionsBlock
getFormPageActionsBlock()
Definition:
NewAttribute.php:30
Magento\Catalog\Test\Block\Adminhtml\Product\Modal
Definition:
AddAttribute.php:7
Magento
Magento\Ui\Test\Block\Adminhtml\FormSections
Definition:
FormSections.php:14
Magento\Catalog\Test\Block\Adminhtml\Product\Modal\NewAttribute
Definition:
NewAttribute.php:16