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

Clean up NullWriter; drop legacy config check

This commit is contained in:
Matt Stauffer
2022-12-22 00:27:09 -05:00
parent a77030ab08
commit e19afe51ad
6 changed files with 15 additions and 34 deletions

View File

@@ -31,7 +31,6 @@ public function test_configuration_directory_is_created_if_it_doesnt_exist()
$files = Mockery::mock(Filesystem::class.'[ensureDirExists,isDir]');
$files->shouldReceive('ensureDirExists')->once()->with(preg_replace('~/valet$~', '', VALET_HOME_PATH), user());
$files->shouldReceive('ensureDirExists')->once()->with(VALET_HOME_PATH, user());
$files->shouldReceive('isDir')->once();
swap(Filesystem::class, $files);
resolve(Configuration::class)->createConfigurationDirectory();
}