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-config
Test
Unit
Model
Config
Structure
Mapper
DependenciesTest.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Config\Test\Unit\Model\Config\Structure\Mapper
;
7
8
class
DependenciesTest
extends
\PHPUnit\Framework\TestCase
9
{
13
protected
$_model
;
14
15
protected
function
setUp
()
16
{
17
$this->_model = new \Magento\Config\Model\Config\Structure\Mapper\Dependencies(
18
new
\
Magento
\Config\Model\Config\
Structure
\
Mapper
\Helper\RelativePathConverter()
19
);
20
}
21
22
public
function
testMap
()
23
{
24
$data
= require_once realpath(
__DIR__
.
'/../../../'
) .
'/_files/dependencies_data.php'
;
25
$expected = require_once realpath(
__DIR__
.
'/../../../'
) .
'/_files/dependencies_mapped.php'
;
26
27
$actual = $this->_model->map(
$data
);
28
$this->assertEquals($expected, $actual);
29
}
30
}
Magento\Config\Test\Unit\Model\Config\Structure\Mapper\DependenciesTest\setUp
setUp()
Definition:
DependenciesTest.php:15
__DIR__
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition:
_bootstrap.php:60
Magento\Framework\DataObject\Mapper
Definition:
Mapper.php:16
Magento\Config\Test\Unit\Model\Config\Structure\Mapper\DependenciesTest\$_model
$_model
Definition:
DependenciesTest.php:13
Magento\Config\Model\Config\Structure
Definition:
Structure.php:47
Magento\Config\Test\Unit\Model\Config\Structure\Mapper
Definition:
DependenciesTest.php:6
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
Magento\Config\Test\Unit\Model\Config\Structure\Mapper\DependenciesTest\testMap
testMap()
Definition:
DependenciesTest.php:22
Magento
Magento\Config\Test\Unit\Model\Config\Structure\Mapper\DependenciesTest
Definition:
DependenciesTest.php:8