File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -27,5 +27,6 @@ public function handle()
27
27
{
28
28
$ name = $ this ->argument ('feature ' );
29
29
$ this ->rollout ->remove ($ name );
30
+ $ this ->line (sprintf ("The '%s' flag was removed. " , $ name ));
30
31
}
31
32
}
Original file line number Diff line number Diff line change 5
5
use Tests \TestCase ;
6
6
use Opensoft \Rollout \Rollout ;
7
7
use Illuminate \Support \Facades \Artisan ;
8
+ use Illuminate \Contracts \Console \Kernel ;
8
9
use Jaspaul \LaravelRollout \Drivers \Cache ;
9
10
10
11
class DeleteCommandTest extends TestCase
@@ -29,4 +30,18 @@ function running_the_command_with_a_feature_will_remove_the_corresponding_featur
29
30
30
31
$ this ->assertEquals ('' , $ store ->get ('rollout.feature:__features__ ' ));
31
32
}
33
+
34
+ /**
35
+ * @test
36
+ */
37
+ function running_the_command_outputs_a_success_statement ()
38
+ {
39
+ Artisan::call ('rollout:delete ' , [
40
+ 'feature ' => 'derp '
41
+ ]);
42
+
43
+ $ output = $ this ->app [Kernel::class]->output ();
44
+
45
+ $ this ->assertContains ('derp ' , $ output );
46
+ }
32
47
}
You can’t perform that action at this time.
0 commit comments