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-bundle
Test
Unit
Ui
DataProvider
Product
Form
Modifier
BundleQuantityTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Bundle\Test\Unit\Ui\DataProvider\Product\Form\Modifier
;
7
8
use
Magento\Bundle\Ui\DataProvider\Product\Form\Modifier\BundleQuantity
;
9
13
class
BundleQuantityTest
extends
AbstractModifierTest
14
{
18
protected
function
createModel
()
19
{
20
return
$this->objectManager->getObject(BundleQuantity::class);
21
}
22
26
public
function
testModifyMeta
()
27
{
28
$sourceMeta = [
29
'testGroup'
=> [
30
'children'
=> [
31
BundleQuantity::CODE_QTY_CONTAINER
=> [
32
'componentType'
=>
'testComponent'
,
33
],
34
]
35
],
36
];
37
$modifiedMeta = $this->
getModel
()->modifyMeta($sourceMeta);
38
$this->assertArrayHasKey(
39
BundleQuantity::CODE_QUANTITY
,
40
$modifiedMeta[
'testGroup'
][
'children'
][
BundleQuantity::CODE_QTY_CONTAINER
][
'children'
]
41
);
42
}
43
47
public
function
testModifyData
()
48
{
49
$expectedData = [];
50
$this->assertEquals($expectedData, $this->
getModel
()->modifyData($expectedData));
51
}
52
}
Magento\Bundle\Ui\DataProvider\Product\Form\Modifier\BundleQuantity\CODE_QTY_CONTAINER
const CODE_QTY_CONTAINER
Definition:
BundleQuantity.php:17
Magento\Bundle\Test\Unit\Ui\DataProvider\Product\Form\Modifier\BundleQuantityTest
Definition:
BundleQuantityTest.php:13
Magento\Bundle\Test\Unit\Ui\DataProvider\Product\Form\Modifier
Definition:
AbstractModifierTest.php:6
Magento\Bundle\Test\Unit\Ui\DataProvider\Product\Form\Modifier\AbstractModifierTest\getModel
getModel()
Definition:
AbstractModifierTest.php:70
Magento\Bundle\Test\Unit\Ui\DataProvider\Product\Form\Modifier\BundleQuantityTest\testModifyData
testModifyData()
Definition:
BundleQuantityTest.php:47
Magento\Bundle\Test\Unit\Ui\DataProvider\Product\Form\Modifier\BundleQuantityTest\createModel
createModel()
Definition:
BundleQuantityTest.php:18
Magento\Bundle\Test\Unit\Ui\DataProvider\Product\Form\Modifier\BundleQuantityTest\testModifyMeta
testModifyMeta()
Definition:
BundleQuantityTest.php:26
Magento\Bundle\Test\Unit\Ui\DataProvider\Product\Form\Modifier\AbstractModifierTest
Definition:
AbstractModifierTest.php:15
Magento\Bundle\Ui\DataProvider\Product\Form\Modifier\BundleQuantity\CODE_QUANTITY
const CODE_QUANTITY
Definition:
BundleQuantity.php:16
Magento\Bundle\Ui\DataProvider\Product\Form\Modifier\BundleQuantity
Definition:
BundleQuantity.php:13