This repository was archived by the owner on Nov 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change 22
33namespace Coderflex \LaraCommand \Console \Concerns ;
44
5- use Symfony \Component \Console \Input \InputArgument ;
6-
75/**
86 * Interact With Console Commands
97 */
@@ -20,7 +18,6 @@ public function loopThroughNameArgumentWith(string $command): bool
2018 * @var array $models
2119 */
2220 $ models = explode (' ' , strval ($ this ->argument ('name ' )));
23-
2421 collect ($ models )->each (function ($ name ) use ($ command ) {
2522 $ this ->line ("Generating {$ name } class \n" );
2623
Original file line number Diff line number Diff line change 22
33it ('creates a new eloquent single model class ' , function () {
44 $ this ->artisan ('laracommand:make-model ' , [
5- 'name ' => 'Category ' ,
6- ])
7- ->assertExitCode (0 );
5+ 'name ' => 'Category ' ,
6+ ])
7+ ->assertExitCode (0 );
88});
99
1010it ('returns required error if the name was not provided ' , function () {
1111 $ this ->artisan ('laracommand:make-model ' , [
12- 'name ' => null ,
13- ])
14- ->assertExitCode (0 );
12+ 'name ' => null ,
13+ ])
14+ ->assertExitCode (0 );
1515});
1616
1717it ('creates a new eloquent model class ' , function () {
You can’t perform that action at this time.
0 commit comments