Skip to content

Commit

Permalink
MAGETWO-66675: Fix relative template references in individual Magento…
Browse files Browse the repository at this point in the history
… modules #1895

- fix static test
  • Loading branch information
vrann committed Mar 24, 2017
1 parent b81fcc8 commit d0639be
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public static function setUpBeforeClass()
}

/**
* Test that references to template files follows canonical Vendor_Module::path/to/template.phtml format.
* Test that references to template files follows canonical format.
*
* path/to/template.phtml Format is prohibited.
* @return void
Expand All @@ -57,7 +57,8 @@ public function testTemplateFollowsCanonicalName()
}
if (count($errors) > 0) {
$message = 'Failed to assert that the template reference follows the canonical format '
. 'Vendor_Module::path/to/template.phtml. Following files haven\'t pass verification:' . PHP_EOL;
. 'Vendor' . '_' . 'Module::path/to/template.phtml. Following files haven\'t pass verification:'
. PHP_EOL;
foreach ($errors as $file => $wrongTemplates) {
$message .= $file . ':' . PHP_EOL;
$message .= '- ' . implode(PHP_EOL . '- ', $wrongTemplates) . PHP_EOL;
Expand Down

0 comments on commit d0639be

Please sign in to comment.