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

Merge pull request #1238 from jjpmann/feature/custom-site-stubs

use getStub to allow custom stub files
This commit is contained in:
Matt Stauffer
2022-12-01 20:25:41 -05:00
committed by GitHub
7 changed files with 32 additions and 17 deletions

View File

@@ -770,9 +770,9 @@ public function test_can_install_nginx_site_config_for_specific_php_version()
// When no Nginx file exists, it will create a new config file from the template
$files->shouldReceive('exists')->once()->with($siteMock->nginxPath('site2.test'))->andReturn(false);
$files->shouldReceive('get')
$files->shouldReceive('getStub')
->once()
->with(dirname(__DIR__).'/cli/Valet/../stubs/site.valet.conf')
->with('site.valet.conf')
->andReturn(file_get_contents(__DIR__.'/../cli/stubs/site.valet.conf'));
$files->shouldReceive('putAsUser')