Skip to content

Commit c21b990

Browse files
AlexJump24jbrooksuk
authored andcommitted
Minor tweaks
1 parent b2f527a commit c21b990

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

src/Commands/InstallCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use ReflectionProperty;
1111
use function Laravel\Prompts\confirm;
1212
use function Laravel\Prompts\info;
13+
use function Laravel\Prompts\intro;
1314
use 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
}

tests/Unit/Commands/InstallCommandTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,13 @@
33
namespace Tests\Unit\Commands;
44

55
use Cachet\Settings\AppSettings;
6-
use Illuminate\Foundation\Testing\RefreshDatabase;
7-
8-
uses(RefreshDatabase::class);
96

107
it('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

@@ -32,7 +29,7 @@
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);

0 commit comments

Comments
 (0)