Skip to content

Commit a539f96

Browse files
committed
ACP2E-2977: Implement Static test which will check for no usage of object manager in .phtml files
1 parent b421a21 commit a539f96

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

Diff for: Magento2/Tests/Templates/ObjectManagerUnitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ObjectManagerUnitTest extends AbstractSniffUnitTest
2727
*/
2828
public function getWarningList($filename = '')
2929
{
30-
if ($filename === 'ObjectManager.1.phtml.inc') {
30+
if ($filename === 'ObjectManagerUnitTest.1.phtml.inc') {
3131
return [
3232
18 => 1
3333
];

0 commit comments

Comments
 (0)