Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
DependenciesTest.php
Go to the documentation of this file.
1 <?php
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 }
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60