1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-06 00:40:06 +01:00

Tweak status output and install output

This commit is contained in:
Matt Stauffer
2023-01-11 10:33:25 -05:00
parent 4c2c4a1238
commit 9a04590abf
3 changed files with 11 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ public function check(): array
$isValid = false;
}
return ['description' => $check['description'], 'success' => $thisIsValid ? 'True' : 'False'];
return ['description' => $check['description'], 'success' => $thisIsValid ? 'Yes' : 'No'];
});
return [

View File

@@ -52,11 +52,17 @@ function (ConsoleCommandEvent $event) {
$app->command('install', function (OutputInterface $output) {
Nginx::stop();
output(PHP_EOL);
Configuration::install();
output(PHP_EOL);
Nginx::install();
output(PHP_EOL);
PhpFpm::install();
output(PHP_EOL);
DnsMasq::install(Configuration::read()['tld']);
output(PHP_EOL);
Nginx::restart();
output(PHP_EOL);
Valet::symlinkToUsersBin();
output(PHP_EOL.'<info>Valet installed successfully!</info>');
@@ -80,9 +86,9 @@ function (ConsoleCommandEvent $event) {
if ($status['success']) {
return Command::SUCCESS;
} else {
return Command::FAILURE;
}
return Command::FAILURE;
})->descriptions('Output the status of Valet and its installed services and config.');
/**

View File

@@ -148,7 +148,7 @@ public function test_status_command_succeeding()
$tester->run(['command' => 'status']);
$tester->assertCommandIsSuccessful();
$this->assertStringNotContainsString('False', $tester->getDisplay());
$this->assertStringNotContainsString('No', $tester->getDisplay());
}
public function test_status_command_failing()
@@ -174,7 +174,7 @@ public function test_status_command_failing()
$tester->run(['command' => 'status']);
$this->assertNotEquals(0, $tester->getStatusCode());
$this->assertStringContainsString('False', $tester->getDisplay());
$this->assertStringContainsString('No', $tester->getDisplay());
}
public function test_parked_command()