@@ -17,33 +17,45 @@ public class BackendModelXmlCompletionRegistrarTest extends CompletionXmlFixture
17
17
"Magento\\ Backend\\ Model\\ Source\\ YesNo"
18
18
};
19
19
20
+ /**
21
+ * Test system.xml file element completion.
22
+ */
20
23
public void testSystemXmlElementProvideCompletion () {
21
24
final String filePath = this .getFixturePath (ModuleSystemXmlFile .FILE_NAME );
22
25
myFixture .configureByFile (filePath );
23
26
24
27
assertCompletionContains (filePath , SYSTEM_XML_BACKEND_MODEL_LOOKUP_STRING_CHECK );
25
28
}
26
29
30
+ /**
31
+ * Test system.xml file element completion won't show.
32
+ */
27
33
public void testSystemXmlElementCompletionWontShow () {
28
34
final String filePath = this .getFixturePath (
29
- ModuleSystemXmlFile .FILE_NAME
35
+ ModuleSystemXmlFile .FILE_NAME
30
36
);
31
37
myFixture .copyFileToProject (filePath );
32
38
33
39
assertCompletionNotShowing (filePath );
34
40
}
35
41
42
+ /**
43
+ * Test system.xml backend model attribute match with the file.
44
+ */
36
45
public void testSystemXmlBackendModelAttributeMatchWithFile () {
37
46
final String filePath = this .getFixturePath (
38
- ModuleSystemXmlFile .FILE_NAME
47
+ ModuleSystemXmlFile .FILE_NAME
39
48
);
40
49
41
50
assertFileContainsCompletions (filePath , SYSTEM_XML_BACKEND_MODEL_LOOKUP_STRING_CHECK );
42
51
}
43
52
53
+ /**
54
+ * Test system.xml backend model attribute doesn't match with the file.
55
+ */
44
56
public void testSystemXmlBackendModelAttributeDontMatchWithFile () {
45
57
final String filePath = this .getFixturePath (
46
- "other-file-than-system.xml"
58
+ "other-file-than-system.xml"
47
59
);
48
60
49
61
assertFileNotContainsCompletions (
@@ -52,35 +64,47 @@ public void testSystemXmlBackendModelAttributeDontMatchWithFile() {
52
64
);
53
65
}
54
66
67
+ /**
68
+ * Test config.xml file element completion.
69
+ */
55
70
public void testConfigXmlElementProvideCompletion () {
56
71
final String filePath = this .getFixturePath (
57
- ModuleConfigXml .FILE_NAME
72
+ ModuleConfigXml .FILE_NAME
58
73
);
59
74
myFixture .copyFileToProject (filePath );
60
75
61
76
assertCompletionContains (filePath , CONFIG_XML_BACKEND_MODEL_LOOKUP_STRING_CHECK );
62
77
}
63
78
79
+ /**
80
+ * Test config.xml file element completion won't show.
81
+ */
64
82
public void testConfigXmlElementCompletionWontShow () {
65
83
final String filePath = this .getFixturePath (
66
- ModuleConfigXml .FILE_NAME
84
+ ModuleConfigXml .FILE_NAME
67
85
);
68
86
myFixture .copyFileToProject (filePath );
69
87
70
88
assertCompletionNotShowing (filePath );
71
89
}
72
90
91
+ /**
92
+ * Test config.xml backend model attribute match with the file.
93
+ */
73
94
public void testConfigXmlBackendModelAttributeMatchWithFile () {
74
95
final String filePath = this .getFixturePath (
75
- ModuleConfigXml .FILE_NAME
96
+ ModuleConfigXml .FILE_NAME
76
97
);
77
98
78
99
assertFileContainsCompletions (filePath , CONFIG_XML_BACKEND_MODEL_LOOKUP_STRING_CHECK );
79
100
}
80
101
102
+ /**
103
+ * Test config.xml backend model attribute doesn't match with the file.
104
+ */
81
105
public void testConfigXmlBackendModelAttributeDontMatchWithFile () {
82
106
final String filePath = this .getFixturePath (
83
- "other-file-than-config.xml"
107
+ "other-file-than-config.xml"
84
108
);
85
109
86
110
assertFileNotContainsCompletions (
0 commit comments