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
Ui
DataProvider
Product
Form
Modifier
ScheduleDesignUpdateTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier
;
7
8
use
Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\ScheduleDesignUpdate
;
9
13
class
ScheduleDesignUpdateTest
extends
AbstractModifierTest
14
{
18
protected
function
createModel
()
19
{
20
return
$this->objectManager->getObject(ScheduleDesignUpdate::class, [
21
'arrayManager'
=> $this->arrayManagerMock,
22
]);
23
}
24
25
public
function
testModifyMeta
()
26
{
27
$this->arrayManagerMock->expects($this->any())
28
->method(
'merge'
)
29
->willReturnArgument(1);
30
$this->assertSame([], $this->
getModel
()->modifyMeta([]));
31
}
32
33
public
function
testModifyData
()
34
{
35
$this->assertSame([
'data_key'
=>
'data_value'
], $this->
getModel
()->modifyData([
'data_key'
=>
'data_value'
]));
36
}
37
}
Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier\AbstractModifierTest
Definition:
AbstractModifierTest.php:19
Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier\AbstractModifierTest\getModel
getModel()
Definition:
AbstractModifierTest.php:105
Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier\ScheduleDesignUpdateTest
Definition:
ScheduleDesignUpdateTest.php:13
Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\ScheduleDesignUpdate
Definition:
ScheduleDesignUpdate.php:16
Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier\ScheduleDesignUpdateTest\testModifyMeta
testModifyMeta()
Definition:
ScheduleDesignUpdateTest.php:25
Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier
Definition:
AbstractModifierTest.php:6
Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier\ScheduleDesignUpdateTest\createModel
createModel()
Definition:
ScheduleDesignUpdateTest.php:18
Magento\Catalog\Test\Unit\Ui\DataProvider\Product\Form\Modifier\ScheduleDesignUpdateTest\testModifyData
testModifyData()
Definition:
ScheduleDesignUpdateTest.php:33