Skip to content

Commit 717c998

Browse files
committed
AC-663: Create phpcs static check for ClassesTest::testPhpCode
1 parent b91d0d4 commit 717c998

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Backend:etc/menu.xsd">
9+
<menu>
10+
<add id="Magento_CatalogRule::promo" title="Promotions" translate="title" module="Magento CatalogRule" parent="Magento_Backend::marketing" sortOrder="10" resource="Magento_CatalogRule::promo"/>
11+
<add id="Magento_CatalogRule::promo_catalog" title="Catalog Price Rule" translate="title" sortOrder="10" module="Magento_CatalogRule" parent="Magento_CatalogRule::promo" action="catalog_rule/promo_catalog/" dependsOnModule="Magento_Catalog" resource="Magento_CatalogRule::promo_catalog"/>
12+
</menu>
13+
</config>

Magento2/Tests/Legacy/ClassesConfigurationUnitTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ public function getErrorList($testFile = '')
2626
42 => 1,
2727
];
2828
}
29+
if ($testFile === 'ClassesConfigurationUnitTest.3.xml') {
30+
return [
31+
10 => 1,
32+
];
33+
}
34+
return [];
2935
}
3036

3137
/**

0 commit comments

Comments
 (0)