File tree Expand file tree Collapse file tree 7 files changed +13
-9
lines changed
testData/actions/generation/generator
CLICommandClassGenerator/generateCLICommandClass
addingTwoCLICommandToDiXml
tests/com/magento/idea/magento2plugin/actions/generation/generator Expand file tree Collapse file tree 7 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ apply plugin: 'org.jetbrains.intellij'
20
20
apply plugin : ' java'
21
21
apply plugin : ' groovy'
22
22
23
+ gradle. startParameter. showStacktrace = org.gradle.api.logging.configuration.ShowStacktrace . ALWAYS_FULL
24
+
23
25
def phpPluginVersion = System . getProperty(" phpPluginVersion" , " 201.7223.91" )
24
26
def ideaVersion = System . getProperty(" ideaVersion" , " 2020.1.1" )
25
27
def javaVersion = 1.8
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ common.cli.create.new.cli.command.title=Create a new Magento 2 CLI Command
44
44
common.cli.generate.error =New CLI Command Generation Error
45
45
common.cli.class.title =CLI Command Class
46
46
common.validationErrorTitle =Validation Error
47
- common.defaultConsoleDirectory =Console
47
+ common.defaultConsoleDirectory =Console/Command
48
48
common.cronGroup.description.scheduleGenerateEvery =Frequency (in minutes) that schedules are written to the cron_schedule table.
49
49
common.cronGroup.description.scheduleAheadFor =Time (in minutes) in advance that schedules are written to the cron_schedule table.
50
50
common.cronGroup.description.scheduleLifetime =Window of time (in minutes) that cron job must start or will be considered missed (" too late" to run).
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Foo \Bar \Console ;
3
+ namespace Foo \Bar \Console \ Command ;
4
4
5
5
use Symfony \Component \Console \Command \Command ;
6
6
use Symfony \Component \Console \Input \InputInterface ;
Original file line number Diff line number Diff line change 4
4
<type name =" Magento\Framework\Console\CommandListInterface" >
5
5
<arguments >
6
6
<argument name =" commands" xsi : type =" array" >
7
- <item name =" foo_bar_test_command" xsi : type =" object" >Foo\Bar\Console\TestCommand</item >
8
- <item name =" foo_bar_one_more_c_l_i_command" xsi : type =" object" >Foo\Bar\Console\OneMoreCLICommand</item >
7
+ <item name =" foo_bar_test_command" xsi : type =" object" >Foo\Bar\Console\Command\TestCommand</item >
8
+ <item name =" foo_bar_one_more_c_l_i_command" xsi : type =" object" >
9
+ Foo\Bar\Console\Command\OneMoreCLICommand
10
+ </item >
9
11
</argument >
10
12
</arguments >
11
13
</type >
Original file line number Diff line number Diff line change 4
4
<type name =" Magento\Framework\Console\CommandListInterface" >
5
5
<arguments >
6
6
<argument name =" commands" xsi : type =" array" >
7
- <item name =" foo_bar_test_command" xsi : type =" object" >Foo\Bar\Console\TestCommand</item >
7
+ <item name =" foo_bar_test_command" xsi : type =" object" >Foo\Bar\Console\Command\ TestCommand</item >
8
8
</argument >
9
9
</arguments >
10
10
</type >
Original file line number Diff line number Diff line change 11
11
12
12
public class CLICommandClassGeneratorTest extends BaseGeneratorTestCase {
13
13
private static final String CLASS_NAME = "TestCLICommandPHPClass" ;
14
- private static final String PARENT_DIRECTORY = "Console" ;
14
+ private static final String PARENT_DIRECTORY = "Console/Command " ;
15
15
private static final String COMMAND_NAME = "bar:test-command" ;
16
16
private static final String DESCRIPTION = "This is the test command" ;
17
- private static final String NAMESPACE = "Foo\\ Bar\\ Console" ;
17
+ private static final String NAMESPACE = "Foo\\ Bar\\ Console\\ Command " ;
18
18
private static final String MODULE_NAME = "Foo_Bar" ;
19
19
20
20
/**
@@ -38,7 +38,7 @@ public void testGenerateCLICommandClass() {
38
38
39
39
assertGeneratedFileIsCorrect (
40
40
expectedFile ,
41
- "src/app/code/Foo/Bar/Console" ,
41
+ "src/app/code/Foo/Bar/Console/Command " ,
42
42
cliCommandClass
43
43
);
44
44
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public class CLICommandDiXmlGeneratorTest extends BaseGeneratorTestCase {
22
22
private static final String CLASS_NAME = "TestCommand" ;
23
23
private static final String SECOND_CLASS_NAME = "OneMoreCLICommand" ;
24
24
private static final String MODULE_NAME = "Foo_Bar" ;
25
- private static final String PARENT_DIR = "Console" ;
25
+ private static final String PARENT_DIR = "Console\\ Command " ;
26
26
private static final String MODULE_DIR = "src/app/code/Foo/Bar/" ;
27
27
28
28
/**
You can’t perform that action at this time.
0 commit comments