1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Integration\Test\Unit\Model\Config;
- use \Magento\Integration\Model\Config\Converter;
- /**
- * Test for conversion of integration XML config into array representation.
- */
- class ConverterTest extends \PHPUnit\Framework\TestCase
- {
- /**
- * @var Converter
- */
- protected $model;
- protected function setUp()
- {
- $this->model = new Converter();
- }
- public function testConvert()
- {
- $inputData = new \DOMDocument();
- $inputData->load(__DIR__ . '/_files/config.xml');
- $expectedResult = require __DIR__ . '/_files/integration.php';
- $this->assertEquals($expectedResult, $this->model->convert($inputData));
- }
- }
|