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

Revert to using port instead of socket to see if it helps stale page issue

This commit is contained in:
Adam Wathan
2016-10-22 11:35:07 -04:00
parent 4cb2e9d331
commit 733747900e
4 changed files with 5 additions and 5 deletions

View File

@@ -22,14 +22,14 @@ public function tearDown()
Mockery::close();
}
public function test_fpm_is_configured_with_the_correct_user_group_and_socket()
public function test_fpm_is_configured_with_the_correct_user_group_and_port()
{
copy(__DIR__.'/files/fpm.conf', __DIR__.'/output/fpm.conf');
resolve(StubForUpdatingFpmConfigFiles::class)->updateConfiguration();
$contents = file_get_contents(__DIR__.'/output/fpm.conf');
$this->assertTrue(strpos($contents, sprintf("\nuser = %s", user())) !== false);
$this->assertTrue(strpos($contents, "\ngroup = staff") !== false);
$this->assertTrue(strpos($contents, "\nlisten = /var/run/fpm-valet.socket") !== false);
$this->assertTrue(strpos($contents, "\nlisten = 127.0.0.1:9000") !== false);
}
}