File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 66use Illuminate \Console \Command ;
77use Jaspaul \LaravelRollout \FeaturePresenter ;
88
9- class ListFeatures extends Command
9+ class ListCommand extends Command
1010{
1111 /**
1212 * The name and signature of the console command.
1313 *
1414 * @var string
1515 */
16- protected $ signature = 'rollout:list-features ' ;
16+ protected $ signature = 'rollout:list ' ;
1717
1818 /**
1919 * The console command description.
Original file line number Diff line number Diff line change 44
55use Opensoft \Rollout \Rollout ;
66use Jaspaul \LaravelRollout \Drivers \Cache ;
7- use Jaspaul \LaravelRollout \Console \ListFeatures ;
7+ use Jaspaul \LaravelRollout \Console \ListCommand ;
88use Illuminate \Support \ServiceProvider as IlluminateServiceProvider ;
99
1010class ServiceProvider extends IlluminateServiceProvider
@@ -20,6 +20,6 @@ public function boot()
2020 return new Rollout (new Cache ($ app ->make ('cache.store ' )));
2121 });
2222
23- $ this ->commands ([ListFeatures ::class]);
23+ $ this ->commands ([ListCommand ::class]);
2424 }
2525}
Original file line number Diff line number Diff line change 77use Illuminate \Cache \ArrayStore ;
88use Illuminate \Cache \Repository ;
99use Jaspaul \LaravelRollout \Drivers \Cache ;
10- use Jaspaul \LaravelRollout \Console \ListFeatures ;
10+ use Jaspaul \LaravelRollout \Console \ListCommand ;
1111
12- class ListFeaturesTest extends TestCase
12+ class ListCommandTest extends TestCase
1313{
1414 private $ command ;
1515 private $ rollout ;
@@ -20,7 +20,7 @@ class ListFeaturesTest extends TestCase
2020 function setup_command ()
2121 {
2222 $ this ->rollout = new Rollout (new Cache (new Repository (new ArrayStore ())));
23- $ this ->command = new ListFeatures ($ this ->rollout );
23+ $ this ->command = new ListCommand ($ this ->rollout );
2424 }
2525
2626 /**
Original file line number Diff line number Diff line change 77use Illuminate \Container \Container ;
88use Illuminate \Contracts \Cache \Repository ;
99use Jaspaul \LaravelRollout \ServiceProvider ;
10- use Jaspaul \LaravelRollout \Console \ListFeatures ;
10+ use Jaspaul \LaravelRollout \Console \ListCommand ;
1111use Illuminate \Support \ServiceProvider as IlluminateServiceProvider ;
1212
1313class ServiceProviderTest extends TestCase
@@ -60,7 +60,7 @@ function booting_registers_our_commands()
6060 $ serviceProvider = new TestServiceProvider ($ this ->container );
6161 $ serviceProvider ->boot ();
6262
63- $ this ->assertEquals ([ListFeatures ::class], $ serviceProvider ->commands );
63+ $ this ->assertEquals ([ListCommand ::class], $ serviceProvider ->commands );
6464 }
6565}
6666
You can’t perform that action at this time.
0 commit comments