File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed
testData/inspections/xml/PluginDeclarationInspection/disabledNonExistingPlugin
tests/com/magento/idea/magento2plugin/inspections/xml Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change
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 >
9
+ <type name =" Magento\CatalogSearch\Helper\Data" >
10
+ <plugin name =<warning descr =" This plugin does not exist to be disabled." >"plugin_which_does_not_exist"</warning > disabled="true" />
11
+ </type >
12
+ </config >
Original file line number Diff line number Diff line change @@ -35,6 +35,14 @@ public void testPluginNameDuplicationWarningWontShow() {
35
35
myFixture .testHighlighting (true , false , false );
36
36
}
37
37
38
+ /**
39
+ * Tests warning for disabling of non-existing plugin
40
+ */
41
+ public void testDisabledNonExistingPlugin () {
42
+ myFixture .configureByFile (getFixturePath (ModuleDiXml .FILE_NAME ));
43
+ myFixture .testHighlighting (true , false , false );
44
+ }
45
+
38
46
/**
39
47
* Tests whenever the duplication warning shows when the plugin name already
40
48
* defined in the same di.xml file
You can’t perform that action at this time.
0 commit comments