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 11<?xml version =" 1.0" ?>
22<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
33 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" />
55</config >
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" ?>
22<config xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
33 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" />
55</config >
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public void testGenerateModuleFile() {
2222 final Project project = myFixture .getProject ();
2323 final ModuleXmlData moduleXmlData = new ModuleXmlData (
2424 "Test" ,
25- "Module " ,
25+ "Module1 " ,
2626 "1.0.0" ,
2727 projectDir ,
2828 true
@@ -36,37 +36,7 @@ public void testGenerateModuleFile() {
3636 assertGeneratedFileIsCorrect (
3737 expectedFile ,
3838 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 ,
7040 moduleXml
7141 );
7242 }
You can’t perform that action at this time.
0 commit comments