Skip to content

Commit

Permalink
Merge pull request magento#694 from magento-engcom/657
Browse files Browse the repository at this point in the history
Unskip test testRouteConfigsValidation
  • Loading branch information
Valeriy Nayda authored Mar 22, 2018
2 parents f546302 + 8f07917 commit f8f0f54
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ protected function setUp()

public function testRouteConfigsValidation()
{
$this->markTestSkipped('https://github.com/magento-engcom/msi/issues/657');
$invalidFiles = [];

$componentRegistrar = new ComponentRegistrar();
Expand Down
5 changes: 4 additions & 1 deletion lib/internal/Magento/Framework/Config/Dom.php
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,10 @@ protected function _getMatchedNode($nodePath)
$node = null;
if ($matchedNodes->length > 1) {
throw new \Magento\Framework\Exception\LocalizedException(
new \Magento\Framework\Phrase("More than one node matching the query: %1", [$nodePath])
new \Magento\Framework\Phrase(
"More than one node matching the query: %1, Xml is: %2",
[$nodePath, $this->dom->saveXML()]
)
);
} elseif ($matchedNodes->length == 1) {
$node = $matchedNodes->item(0);
Expand Down

0 comments on commit f8f0f54

Please sign in to comment.