1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00

Refactor code for restarting specific PHP version

This commit is contained in:
Matt Stauffer
2024-05-31 18:41:34 -04:00
parent 2399ca90d7
commit cba22f38bc
2 changed files with 23 additions and 18 deletions

View File

@@ -792,7 +792,7 @@ public function test_restart_command_restarts_php_version()
$tester->run(['command' => 'restart', 'service' => 'php@8.1']);
$tester->assertCommandIsSuccessful();
$this->assertStringContainsString('PHP has been restarted.', $tester->getDisplay());
$this->assertStringContainsString('php@8.1 has been restarted.', $tester->getDisplay());
}
public function test_restart_command_restarts_php_denormalized_version()
@@ -813,7 +813,7 @@ public function test_restart_command_restarts_php_denormalized_version()
$tester->run(['command' => 'restart', 'service' => 'php81']);
$tester->assertCommandIsSuccessful();
$this->assertStringContainsString('PHP has been restarted.', $tester->getDisplay());
$this->assertStringContainsString('php@8.1 has been restarted.', $tester->getDisplay());
}
public function test_start_command()