@@ -17,33 +17,45 @@ public class BackendModelXmlCompletionRegistrarTest extends CompletionXmlFixture
1717 "Magento\\ Backend\\ Model\\ Source\\ YesNo"
1818 };
1919
20+ /**
21+ * Test system.xml file element completion.
22+ */
2023 public void testSystemXmlElementProvideCompletion () {
2124 final String filePath = this .getFixturePath (ModuleSystemXmlFile .FILE_NAME );
2225 myFixture .configureByFile (filePath );
2326
2427 assertCompletionContains (filePath , SYSTEM_XML_BACKEND_MODEL_LOOKUP_STRING_CHECK );
2528 }
2629
30+ /**
31+ * Test system.xml file element completion won't show.
32+ */
2733 public void testSystemXmlElementCompletionWontShow () {
2834 final String filePath = this .getFixturePath (
29- ModuleSystemXmlFile .FILE_NAME
35+ ModuleSystemXmlFile .FILE_NAME
3036 );
3137 myFixture .copyFileToProject (filePath );
3238
3339 assertCompletionNotShowing (filePath );
3440 }
3541
42+ /**
43+ * Test system.xml backend model attribute match with the file.
44+ */
3645 public void testSystemXmlBackendModelAttributeMatchWithFile () {
3746 final String filePath = this .getFixturePath (
38- ModuleSystemXmlFile .FILE_NAME
47+ ModuleSystemXmlFile .FILE_NAME
3948 );
4049
4150 assertFileContainsCompletions (filePath , SYSTEM_XML_BACKEND_MODEL_LOOKUP_STRING_CHECK );
4251 }
4352
53+ /**
54+ * Test system.xml backend model attribute doesn't match with the file.
55+ */
4456 public void testSystemXmlBackendModelAttributeDontMatchWithFile () {
4557 final String filePath = this .getFixturePath (
46- "other-file-than-system.xml"
58+ "other-file-than-system.xml"
4759 );
4860
4961 assertFileNotContainsCompletions (
@@ -52,35 +64,47 @@ public void testSystemXmlBackendModelAttributeDontMatchWithFile() {
5264 );
5365 }
5466
67+ /**
68+ * Test config.xml file element completion.
69+ */
5570 public void testConfigXmlElementProvideCompletion () {
5671 final String filePath = this .getFixturePath (
57- ModuleConfigXml .FILE_NAME
72+ ModuleConfigXml .FILE_NAME
5873 );
5974 myFixture .copyFileToProject (filePath );
6075
6176 assertCompletionContains (filePath , CONFIG_XML_BACKEND_MODEL_LOOKUP_STRING_CHECK );
6277 }
6378
79+ /**
80+ * Test config.xml file element completion won't show.
81+ */
6482 public void testConfigXmlElementCompletionWontShow () {
6583 final String filePath = this .getFixturePath (
66- ModuleConfigXml .FILE_NAME
84+ ModuleConfigXml .FILE_NAME
6785 );
6886 myFixture .copyFileToProject (filePath );
6987
7088 assertCompletionNotShowing (filePath );
7189 }
7290
91+ /**
92+ * Test config.xml backend model attribute match with the file.
93+ */
7394 public void testConfigXmlBackendModelAttributeMatchWithFile () {
7495 final String filePath = this .getFixturePath (
75- ModuleConfigXml .FILE_NAME
96+ ModuleConfigXml .FILE_NAME
7697 );
7798
7899 assertFileContainsCompletions (filePath , CONFIG_XML_BACKEND_MODEL_LOOKUP_STRING_CHECK );
79100 }
80101
102+ /**
103+ * Test config.xml backend model attribute doesn't match with the file.
104+ */
81105 public void testConfigXmlBackendModelAttributeDontMatchWithFile () {
82106 final String filePath = this .getFixturePath (
83- "other-file-than-config.xml"
107+ "other-file-than-config.xml"
84108 );
85109
86110 assertFileNotContainsCompletions (
0 commit comments