-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qa: use example.org for test domains
Signed-off-by: Matthew Weier O'Phinney <[email protected]>
- Loading branch information
1 parent
21cddbd
commit ab87917
Showing
10 changed files
with
27 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,7 +67,7 @@ public function testReturnsEarlyIfConfigHasNoPackageAssociated() | |
$this->event->expects($this->never())->method('reportNoMatchingGitRemoteFound'); | ||
$this->event->expects($this->never())->method('foundRemote'); | ||
$this->event->expects($this->never())->method('setRemotes'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); | ||
|
||
$listener = new DiscoverRemoteFromGitRemotesListener(); | ||
|
||
|
@@ -83,10 +83,10 @@ public function testReportsNoMatchingGitRemotesFoundIfCommandFails() | |
$this->event | ||
->expects($this->once()) | ||
->method('reportNoMatchingGitRemoteFound') | ||
->with('git.mwop.net', 'some/package'); | ||
->with('git.example.org', 'some/package'); | ||
$this->event->expects($this->never())->method('foundRemote'); | ||
$this->event->expects($this->never())->method('setRemotes'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); | ||
|
||
$listener = new DiscoverRemoteFromGitRemotesListener(); | ||
$listener->exec = function (string $command, array &$output, int &$return) { | ||
|
@@ -105,18 +105,18 @@ public function testReportsNoMatchingGitRemotesFoundIfNoRemotesMatchDomainAndPac | |
$this->event | ||
->expects($this->once()) | ||
->method('reportNoMatchingGitRemoteFound') | ||
->with('git.mwop.net', 'some/package'); | ||
->with('git.example.org', 'some/package'); | ||
$this->event->expects($this->never())->method('foundRemote'); | ||
$this->event->expects($this->never())->method('setRemotes'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); | ||
|
||
$listener = new DiscoverRemoteFromGitRemotesListener(); | ||
$listener->exec = function (string $command, array &$output, int &$return) { | ||
$output = [ | ||
'origin https://github.com/some/package.git (push)', | ||
'upstream [email protected]:some/package.git (push)', | ||
'myself git://git.mwop.net/another/package.git (push)', | ||
'readonly git://git.mwop.net/some/package.git (pull)', | ||
'myself git://git.example.org/another/package.git (push)', | ||
'readonly git://git.example.org/some/package.git (pull)', | ||
]; | ||
}; | ||
|
||
|
@@ -135,14 +135,14 @@ public function testReportsRemoteFoundIfExactlyOneRemoteMatches() | |
->with('myself'); | ||
$this->event->expects($this->never())->method('reportNoMatchingGitRemoteFound'); | ||
$this->event->expects($this->never())->method('setRemotes'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); | ||
|
||
$listener = new DiscoverRemoteFromGitRemotesListener(); | ||
$listener->exec = function (string $command, array &$output, int &$return) { | ||
$output = [ | ||
'origin https://github.com/some/package.git (push)', | ||
'upstream [email protected]:some/package.git (push)', | ||
'myself git://git.mwop.net/some/package.git (push)', | ||
'myself git://git.example.org/some/package.git (push)', | ||
]; | ||
}; | ||
|
||
|
@@ -161,14 +161,14 @@ public function testReportsMultipleRemotesFoundIfMoreThanOneRemoteMatches() | |
->with(['upstream', 'myself']); | ||
$this->event->expects($this->never())->method('reportNoMatchingGitRemoteFound'); | ||
$this->event->expects($this->never())->method('foundRemote'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); | ||
$this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); | ||
|
||
$listener = new DiscoverRemoteFromGitRemotesListener(); | ||
$listener->exec = function (string $command, array &$output, int &$return) { | ||
$output = [ | ||
'origin https://github.com/some/package.git (push)', | ||
'upstream me@git.mwop.net:some/package.git (push)', | ||
'myself git://git.mwop.net/some/package.git (push)', | ||
'upstream me@git.example.org:some/package.git (push)', | ||
'myself git://git.example.org/some/package.git (push)', | ||
]; | ||
}; | ||
|
||
|
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
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