-
Notifications
You must be signed in to change notification settings - Fork 699
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1178 from cristiancalara/master
Stop root homebrew services on php version switch
- Loading branch information
Showing
4 changed files
with
88 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,7 +42,7 @@ public function test_fpm_is_configured_with_the_correct_user_group_and_port() | |
public function test_stopRunning_will_pass_filtered_result_of_getRunningServices_to_stopService() | ||
{ | ||
$brewMock = Mockery::mock(Brew::class); | ||
$brewMock->shouldReceive('getRunningServices')->once() | ||
$brewMock->shouldReceive('getAllRunningServices')->once() | ||
->andReturn(collect([ | ||
'php7.2', | ||
'[email protected]', | ||
|
@@ -83,7 +83,7 @@ public function test_use_version_will_convert_passed_php_version() | |
$brewMock->shouldReceive('link')->withArgs(['[email protected]', true]); | ||
$brewMock->shouldReceive('linkedPhp'); | ||
$brewMock->shouldReceive('installed'); | ||
$brewMock->shouldReceive('getRunningServices')->andReturn(collect()); | ||
$brewMock->shouldReceive('getAllRunningServices')->andReturn(collect()); | ||
$brewMock->shouldReceive('stopService'); | ||
|
||
// Test both non prefixed and prefixed | ||
|
@@ -128,7 +128,7 @@ public function test_use_version_if_already_linked_php_will_unlink_before_instal | |
$brewMock->shouldReceive('link')->withArgs(['[email protected]', true]); | ||
$brewMock->shouldReceive('linkedPhp'); | ||
$brewMock->shouldReceive('installed'); | ||
$brewMock->shouldReceive('getRunningServices')->andReturn(collect()); | ||
$brewMock->shouldReceive('getAllRunningServices')->andReturn(collect()); | ||
$brewMock->shouldReceive('stopService'); | ||
|
||
// Test both non prefixed and prefixed | ||
|