File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
src/com/magento/idea/magento2plugin/actions/generation/generator
tests/com/magento/idea/magento2plugin/actions/generation/generator Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -75,14 +75,14 @@ protected void fillAttributes(Properties attributes) {
75
75
/**
76
76
* Generate Cronjob Class according to data model
77
77
*
78
- * @param String actionName
78
+ * @param actionName
79
79
*
80
80
* @return PhpFile
81
81
*/
82
82
private PhpFile createCronjobClass (String actionName ) {
83
83
String cronjobClassName = this .cronjobClassData .getClassName ();
84
84
String moduleName = this .cronjobClassData .getModuleName ();
85
- String [] cronjobSubDirectories = this .cronjobClassData .getDirectory ().split (File . separator );
85
+ String [] cronjobSubDirectories = this .cronjobClassData .getDirectory ().split ("/" );
86
86
PsiDirectory parentDirectory = ModuleIndex .getInstance (project ).getModuleDirectoryByModuleName (moduleName );
87
87
88
88
for (String cronjobSubDirectory : cronjobSubDirectories ) {
Original file line number Diff line number Diff line change 5
5
package com .magento .idea .magento2plugin .actions .generation .generator ;
6
6
7
7
import com .intellij .psi .PsiFile ;
8
- import com .jetbrains .php .lang .psi .PhpFile ;
9
8
import com .magento .idea .magento2plugin .BaseProjectTestCase ;
10
9
import java .io .File ;
11
10
@@ -28,8 +27,8 @@ protected void assertGeneratedFileIsCorrect(
28
27
String expectedDirectory ,
29
28
PsiFile resultFile ) {
30
29
31
- // assertTrue(resultFile.getContainingDirectory().getVirtualFile().getPresentableUrl()
32
- // .endsWith(expectedDirectory));
30
+ assertTrue (resultFile .getContainingDirectory ().getVirtualFile ().getPresentableUrl ()
31
+ .endsWith (expectedDirectory ));
33
32
assertEquals (expectedFile .getText (), resultFile .getText ());
34
33
assertEquals (expectedFile .getName (), resultFile .getName ());
35
34
}
You can’t perform that action at this time.
0 commit comments