diff --git a/Magento2/Sniffs/Html/HtmlBindingSniff.php b/Magento2/Sniffs/Html/HtmlBindingSniff.php index 63718b5b..cf498da1 100644 --- a/Magento2/Sniffs/Html/HtmlBindingSniff.php +++ b/Magento2/Sniffs/Html/HtmlBindingSniff.php @@ -83,7 +83,7 @@ public function process(File $phpcsFile, $stackPtr) . ' - "' . $htmlBinding . '" doesn\'t,' . PHP_EOL . 'consider using text binding if the value is supposed to be text', null, - 'UIComponentTemplate.KnockoutBinding.HtmlSuffix' + 'KnockoutBindingHtmlSuffix' ); } } diff --git a/Magento2/Tests/Html/HtmlBindingSniffUnitTest.1.inc b/Magento2/Tests/Html/HtmlBindingSniffUnitTest.1.inc new file mode 100644 index 00000000..37e71322 --- /dev/null +++ b/Magento2/Tests/Html/HtmlBindingSniffUnitTest.1.inc @@ -0,0 +1,30 @@ + + +
+Test
+ + + + + + + + + + + + + + diff --git a/Magento2/Tests/Html/HtmlBindingUnitTest.php b/Magento2/Tests/Html/HtmlBindingUnitTest.php new file mode 100644 index 00000000..fe033afd --- /dev/null +++ b/Magento2/Tests/Html/HtmlBindingUnitTest.php @@ -0,0 +1,27 @@ + 6]; + } + + /** + * @inheritdoc + */ + public function getWarningList() + { + return []; + } +}