File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1010use ReflectionProperty ;
1111use function Laravel \Prompts \confirm ;
1212use function Laravel \Prompts \info ;
13+ use function Laravel \Prompts \intro ;
1314use function Laravel \Prompts \text ;
1415
1516
@@ -21,7 +22,7 @@ class InstallCommand extends Command
2122
2223 public function handle (AppSettings $ settings )
2324 {
24- info ('Welcome to the Cachet installer! ' );
25+ intro ('Welcome to the Cachet installer! ' );
2526
2627 Sleep::for (2 )->seconds ();
2728
@@ -32,7 +33,7 @@ public function handle(AppSettings $settings)
3233
3334 info ('Installing Cachet... ' );
3435
35- info ('Cachet has been installed successfully! ' );
36+ info ('Cachet is installed ⚡ ' );
3637
3738 return Command::SUCCESS ;
3839 }
Original file line number Diff line number Diff line change 33namespace Tests \Unit \Commands ;
44
55use Cachet \Settings \AppSettings ;
6- use Illuminate \Foundation \Testing \RefreshDatabase ;
7-
8- uses (RefreshDatabase::class);
96
107it ('runs install command successfully without configuration ' , function () {
118 $ this ->artisan ('cachet:install ' )
129 ->expectsOutputToContain ('Welcome to the Cachet installer! ' )
1310 ->expectsConfirmation ('Do you want to configure Cachet before installing? ' , 'no ' )
1411 ->expectsOutputToContain ('Installing Cachet... ' )
15- ->expectsOutputToContain ('Cachet has been installed successfully! ' )
12+ ->expectsOutputToContain ('Cachet is installed ⚡ ' )
1613 ->assertSuccessful ();
1714});
1815
3229 ->expectsConfirmation ('Should the dashboard login link be shown? ' , 'no ' )
3330 ->expectsQuestion ('Major outage threshold % ' , 50 )
3431 ->expectsOutputToContain ('Installing Cachet... ' )
35- ->expectsOutputToContain ('Cachet has been installed successfully! ' )
32+ ->expectsOutputToContain ('Cachet is installed ⚡ ' )
3633 ->assertSuccessful ();
3734
3835 $ settings = app (AppSettings::class);
You can’t perform that action at this time.
0 commit comments