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

Replace some \n with PHP_EOL; move custom drivers into Custom namespace

This commit is contained in:
Matt Stauffer
2022-12-21 19:54:13 -05:00
parent a4e8331852
commit 20f48f6eab
9 changed files with 58 additions and 18 deletions

View File

@@ -42,9 +42,9 @@ public function test_fpm_is_configured_with_the_correct_user_group_and_port()
resolve(StubForUpdatingFpmConfigFiles::class)->createConfigurationFiles('php@7.2');
$contents = file_get_contents(__DIR__.'/output/fpm.conf');
$this->assertStringContainsString(sprintf("\nuser = %s", user()), $contents);
$this->assertStringContainsString("\ngroup = staff", $contents);
$this->assertStringContainsString("\nlisten = ".VALET_HOME_PATH.'/valet72.sock', $contents);
$this->assertStringContainsString(sprintf(PHP_EOL."user = %s", user()), $contents);
$this->assertStringContainsString(PHP_EOL."group = staff", $contents);
$this->assertStringContainsString(PHP_EOL."listen = ".VALET_HOME_PATH.'/valet72.sock', $contents);
// It should disable old or default FPM Pool configuration
$this->assertFileDoesNotExist(__DIR__.'/output/www.conf');