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 10
10
use ReflectionProperty ;
11
11
use function Laravel \Prompts \confirm ;
12
12
use function Laravel \Prompts \info ;
13
+ use function Laravel \Prompts \intro ;
13
14
use function Laravel \Prompts \text ;
14
15
15
16
@@ -21,7 +22,7 @@ class InstallCommand extends Command
21
22
22
23
public function handle (AppSettings $ settings )
23
24
{
24
- info ('Welcome to the Cachet installer! ' );
25
+ intro ('Welcome to the Cachet installer! ' );
25
26
26
27
Sleep::for (2 )->seconds ();
27
28
@@ -32,7 +33,7 @@ public function handle(AppSettings $settings)
32
33
33
34
info ('Installing Cachet... ' );
34
35
35
- info ('Cachet has been installed successfully! ' );
36
+ info ('Cachet is installed ⚡ ' );
36
37
37
38
return Command::SUCCESS ;
38
39
}
Original file line number Diff line number Diff line change 3
3
namespace Tests \Unit \Commands ;
4
4
5
5
use Cachet \Settings \AppSettings ;
6
- use Illuminate \Foundation \Testing \RefreshDatabase ;
7
-
8
- uses (RefreshDatabase::class);
9
6
10
7
it ('runs install command successfully without configuration ' , function () {
11
8
$ this ->artisan ('cachet:install ' )
12
9
->expectsOutputToContain ('Welcome to the Cachet installer! ' )
13
10
->expectsConfirmation ('Do you want to configure Cachet before installing? ' , 'no ' )
14
11
->expectsOutputToContain ('Installing Cachet... ' )
15
- ->expectsOutputToContain ('Cachet has been installed successfully! ' )
12
+ ->expectsOutputToContain ('Cachet is installed ⚡ ' )
16
13
->assertSuccessful ();
17
14
});
18
15
32
29
->expectsConfirmation ('Should the dashboard login link be shown? ' , 'no ' )
33
30
->expectsQuestion ('Major outage threshold % ' , 50 )
34
31
->expectsOutputToContain ('Installing Cachet... ' )
35
- ->expectsOutputToContain ('Cachet has been installed successfully! ' )
32
+ ->expectsOutputToContain ('Cachet is installed ⚡ ' )
36
33
->assertSuccessful ();
37
34
38
35
$ settings = app (AppSettings::class);
You can’t perform that action at this time.
0 commit comments