File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ class ApiMakeCommand extends Command
30
30
{--C|resource : create a resource}
31
31
{--P|policy : create a policy}
32
32
{--R|request : create a request}
33
+ {--T|test : create a Feature Test}
33
34
{--A|all : create all requirements} ' ;
34
35
35
36
/**
@@ -95,7 +96,7 @@ protected function createOptionals()
95
96
}
96
97
97
98
if ($ this ->option ('all ' ) || $ this ->option ('policy ' )) {
98
- $ this ->call ('make:policy ' , ['name ' => $ this ->stubVariables ['model ' ]['name ' ].'Policy ' , '--model ' => $ this ->stubVariables ['model ' ]['fullNameWithoutRoot ' ]]);
99
+ $ this ->call ('make:policy ' , ['name ' => $ this ->stubVariables ['model ' ]['fullNameWithoutRoot ' ].'Policy ' , '--model ' => $ this ->stubVariables ['model ' ]['fullNameWithoutRoot ' ]]);
99
100
}
100
101
101
102
if ($ this ->option ('all ' ) || $ this ->option ('resource ' )) {
@@ -106,6 +107,10 @@ protected function createOptionals()
106
107
if ($ this ->option ('all ' ) || $ this ->option ('request ' )) {
107
108
$ this ->call ('make:request ' , ['name ' => $ this ->stubVariables ['model ' ]['name ' ]. 'Request ' ]);
108
109
}
110
+
111
+ if ($ this ->option ('all ' ) || $ this ->option ('test ' )) {
112
+ $ this ->call ('make:test ' , ['name ' => $ this ->stubVariables ['model ' ]['fullNameWithoutRoot ' ]. 'Test ' ]);
113
+ }
109
114
}
110
115
111
116
You can’t perform that action at this time.
0 commit comments