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
module-catalog
Test
Unit
Block
Adminhtml
Product
Edit
Button
CreateCategoryTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Test\Unit\Block\Adminhtml\Product\Edit\Button
;
7
8
use
Magento\Catalog\Block\Adminhtml\Product\Edit\Button\CreateCategory
;
9
13
class
CreateCategoryTest
extends
GenericTest
14
{
15
public
function
testGetButtonData
()
16
{
17
$this->assertEquals(
18
[
19
'label'
=>
__
(
'Create Category'
),
20
'class'
=>
'save primary'
,
21
'data_attribute'
=> [
22
'mage-init'
=> [
'button'
=> [
'event'
=>
'save'
]],
23
'form-role'
=>
'save'
,
24
],
25
'sort_order'
=> 10,
26
],
27
$this->
getModel
(CreateCategory::class)->getButtonData()
28
);
29
}
30
}
Magento\Catalog\Test\Unit\Block\Adminhtml\Product\Edit\Button\GenericTest\getModel
getModel($class=Generic::class)
Definition:
GenericTest.php:62
Magento\Catalog\Block\Adminhtml\Product\Edit\Button\CreateCategory
Definition:
CreateCategory.php:11
Magento\Catalog\Test\Unit\Block\Adminhtml\Product\Edit\Button\CreateCategoryTest
Definition:
CreateCategoryTest.php:13
__
__()
Definition:
__.php:13
Magento\Catalog\Test\Unit\Block\Adminhtml\Product\Edit\Button
Definition:
AddAttributeTest.php:6
Magento\Catalog\Test\Unit\Block\Adminhtml\Product\Edit\Button\GenericTest
Definition:
GenericTest.php:17
Magento\Catalog\Test\Unit\Block\Adminhtml\Product\Edit\Button\CreateCategoryTest\testGetButtonData
testGetButtonData()
Definition:
CreateCategoryTest.php:15