File tree Expand file tree Collapse file tree 3 files changed +4
-34
lines changed
testData/actions/generation/generator/ModuleXmlGeneratorHaveSetupVersion
tests/com/magento/idea/magento2plugin/actions/generation/generator Expand file tree Collapse file tree 3 files changed +4
-34
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
3
xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
4
- <module name =" Test_Module " setup_version =" 1.0.0" />
4
+ <module name =" Test_Module1 " setup_version =" 1.0.0" />
5
5
</config >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" ?>
2
2
<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
3
xsi : noNamespaceSchemaLocation =" urn:magento:framework:Module/etc/module.xsd" >
4
- <module name =" Test_Module " setup_version =" 1.0.0" />
4
+ <module name =" Test_Module1 " setup_version =" 1.0.0" />
5
5
</config >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public void testGenerateModuleFile() {
22
22
final Project project = myFixture .getProject ();
23
23
final ModuleXmlData moduleXmlData = new ModuleXmlData (
24
24
"Test" ,
25
- "Module " ,
25
+ "Module1 " ,
26
26
"1.0.0" ,
27
27
projectDir ,
28
28
true
@@ -36,37 +36,7 @@ public void testGenerateModuleFile() {
36
36
assertGeneratedFileIsCorrect (
37
37
expectedFile ,
38
38
projectDir .getVirtualFile ().getPath ()
39
- + "/Test/Module" + File .separator + Package .moduleBaseAreaDir ,
40
- moduleXml
41
- );
42
- }
43
-
44
- /**
45
- * Test checks whether module.xml is generated
46
- * correctly for module as a separate project.
47
- */
48
- public void testGenerateFileInRoot () {
49
- final String filePath = this .getFixturePath (ModuleXml .FILE_NAME );
50
- final PsiFile expectedFile = myFixture .configureByFile (filePath );
51
- final PsiDirectory projectDir = getProjectDirectory ();
52
-
53
- final Project project = myFixture .getProject ();
54
- final ModuleXmlData moduleXmlData = new ModuleXmlData (
55
- "Test" ,
56
- "Module" ,
57
- "1.0.0" ,
58
- projectDir ,
59
- false
60
- );
61
- final ModuleXmlGenerator moduleXmlGenerator = new ModuleXmlGenerator (
62
- moduleXmlData ,
63
- project
64
- );
65
- final PsiFile moduleXml = moduleXmlGenerator .generate ("test" );
66
-
67
- assertGeneratedFileIsCorrect (
68
- expectedFile ,
69
- projectDir .getVirtualFile ().getPath () + File .separator + Package .moduleBaseAreaDir ,
39
+ + "/Test/Module1" + File .separator + Package .moduleBaseAreaDir ,
70
40
moduleXml
71
41
);
72
42
}
You can’t perform that action at this time.
0 commit comments