Skip to content

Commit dc88b53

Browse files
committed
AC-1150 Update magento-coding-standard to v11 and remove moved tests from magento2 repo
1 parent 9745823 commit dc88b53

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

app/code/Magento/Wishlist/view/frontend/templates/rss/email.phtml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ $wishlistHelper = $block->getData('wishlistHelper');
1212
?>
1313
<?php if ($block->getLink()): ?>
1414
<p id="wishlist-rss-email-link">
15+
<h2>{{escapehtml "H2"}}</h2>
1516
<?= $block->escapeHtml(__("RSS link to %1's wishlist", $wishlistHelper->getCustomerName())) ?>
1617
<br />
1718
<a href="<?= $block->escapeUrl($block->getLink()) ?>"><?= $block->escapeUrl($block->getLink()) ?></a>

dev/tests/static/testsuite/Magento/Test/Xml/LiveCodeTest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\TestFramework\CodingStandard\Tool\CodeSniffer;
1111
use Magento\Test\Php\LiveCodeTest as PHPCodeTest;
1212
use Magento\TestFramework\CodingStandard\Tool\CodeSniffer\Wrapper;
13+
use Magento\TestFramework\Utility\FilesSearch;
1314
use PHPUnit\Framework\TestCase;
1415

1516
/**
@@ -45,10 +46,13 @@ public static function setUpBeforeClass(): void
4546
public function testCodeStyle(): void
4647
{
4748
$reportFile = self::$reportDir . '/xml_report.txt';
49+
if (!file_exists($reportFile)) {
50+
touch($reportFile);
51+
}
4852
$codeSniffer = new CodeSniffer('Magento', $reportFile, new Wrapper());
4953
$codeSniffer->setExtensions([self::FILE_EXTENSION]);
5054
$fileList = $this->isFullScan() ? array_column(Files::init()->getXmlFiles(), '0')
51-
: PHPCodeTest::getWhitelist([self::FILE_EXTENSION], __DIR__, __DIR__);
55+
: PHPCodeTest::getWhitelist([self::FILE_EXTENSION]);
5256
$result = $codeSniffer->run($fileList);
5357
$report = file_exists($reportFile) ? file_get_contents($reportFile) : '';
5458
$this->assertEquals(

0 commit comments

Comments
 (0)