123456789101112131415161718192021222324252627 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- namespace Magento\Webapi\Test\Unit\Model\Config;
- class ConverterTest extends \PHPUnit\Framework\TestCase
- {
- /**
- * @var \Magento\Webapi\Model\Config\Converter
- */
- protected $_model;
- protected function setUp()
- {
- $this->_model = new \Magento\Webapi\Model\Config\Converter();
- }
- public function testConvert()
- {
- $inputData = new \DOMDocument();
- $inputData->load(__DIR__ . '/_files/webapi.xml');
- $expectedResult = require __DIR__ . '/_files/webapi.php';
- $this->assertEquals($expectedResult, $this->_model->convert($inputData));
- }
- }
|