mirror of
https://github.com/bdnugget/magento2.git
synced 2026-11-07 09:17:35 +00:00
33 lines
744 B
PHP
33 lines
744 B
PHP
<?php
|
|
/**
|
|
* Copyright © Magento, Inc. All rights reserved.
|
|
* See COPYING.txt for license details.
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace Magento\Webapi\Test\Unit\Model\Config;
|
|
|
|
use Magento\Webapi\Model\Config\Converter;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class ConverterTest extends TestCase
|
|
{
|
|
/**
|
|
* @var Converter
|
|
*/
|
|
protected $_model;
|
|
|
|
protected function setUp(): void
|
|
{
|
|
$this->_model = new 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));
|
|
}
|
|
}
|