_model = new \Magento\Payment\Model\Config\Converter(); } public function testConvert() { $dom = new \DOMDocument(); $xmlFile = __DIR__ . '/_files/payment.xml'; $dom->loadXML(file_get_contents($xmlFile)); $expectedResult = [ 'credit_cards' => ['SO' => 'Solo', 'SM' => 'Switch/Maestro'], 'groups' => ['any_payment' => 'Any Payment'], 'methods' => ['checkmo' => ['allow_multiple_address' => 1]], ]; $this->assertEquals($expectedResult, $this->_model->convert($dom), '', 0, 20); } }