diff --git a/test/Config/DiscoverPackageFromGitRemoteListenerTest.php b/test/Config/DiscoverPackageFromGitRemoteListenerTest.php index 08976e1b..56c5b0fe 100644 --- a/test/Config/DiscoverPackageFromGitRemoteListenerTest.php +++ b/test/Config/DiscoverPackageFromGitRemoteListenerTest.php @@ -56,7 +56,7 @@ public function testReturnsEarlyIfProviderHasNoUrl() public function testDoesNotNotifyEventOfAnythingIfNoRemotesFound() { - $this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); + $this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); $this->config->expects($this->once())->method('provider')->willReturn($this->provider); $this->event->expects($this->once())->method('packageWasFound')->willReturn(false); $this->event->expects($this->once())->method('config')->willReturn($this->config); @@ -72,7 +72,7 @@ public function testDoesNotNotifyEventOfAnythingIfNoRemotesFound() public function testDoesNotNotifyEventOfAnythingIfNoRemoteUrlsFound() { - $this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); + $this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); $this->config->expects($this->once())->method('provider')->willReturn($this->provider); $this->event->expects($this->once())->method('packageWasFound')->willReturn(false); $this->event->expects($this->once())->method('config')->willReturn($this->config); @@ -93,7 +93,7 @@ public function testDoesNotNotifyEventOfAnythingIfNoRemoteUrlsFound() public function testDoesNotNotifyEventOfAnythingIfNoMatchingRemotesFound() { - $this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); + $this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); $this->config->expects($this->once())->method('provider')->willReturn($this->provider); $this->event->expects($this->once())->method('packageWasFound')->willReturn(false); $this->event->expects($this->once())->method('config')->willReturn($this->config); @@ -118,7 +118,7 @@ public function testDoesNotNotifyEventOfAnythingIfNoMatchingRemotesFound() public function testNotifiesEventOfFirstMatchingRemoteFound() { - $this->provider->expects($this->once())->method('url')->willReturn('https://git.mwop.net'); + $this->provider->expects($this->once())->method('url')->willReturn('https://git.example.org'); $this->config->expects($this->once())->method('provider')->willReturn($this->provider); $this->event->expects($this->once())->method('packageWasFound')->willReturn(false); $this->event->expects($this->once())->method('config')->willReturn($this->config); @@ -132,10 +132,10 @@ public function testNotifiesEventOfFirstMatchingRemoteFound() return; } if (preg_match('/origin/', $command)) { - $output = ['me@git.mwop.net:some/package.git']; + $output = ['me@git.example.org:some/package.git']; return; } - $output = ['you@git.mwop.net:another/package.git']; + $output = ['you@git.example.org:another/package.git']; }; $this->assertNull($listener($this->event)); diff --git a/test/Config/DiscoverRemoteFromGitRemotesListenerTest.php b/test/Config/DiscoverRemoteFromGitRemotesListenerTest.php index 90b75fa0..dc15569d 100644 --- a/test/Config/DiscoverRemoteFromGitRemotesListenerTest.php +++ b/test/Config/DiscoverRemoteFromGitRemotesListenerTest.php @@ -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 me@gitlab.com: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 me@gitlab.com: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)', ]; }; diff --git a/test/Config/RetrieveGlobalConfigListenerTest.php b/test/Config/RetrieveGlobalConfigListenerTest.php index 8c39b2a3..a55d867a 100644 --- a/test/Config/RetrieveGlobalConfigListenerTest.php +++ b/test/Config/RetrieveGlobalConfigListenerTest.php @@ -68,7 +68,7 @@ public function testPopulatesConfigFromFile() $provider = $providers->get('github'); $this->assertInstanceOf(Provider\ProviderSpec::class, $provider); $this->assertSame('github', $provider->name()); - $this->assertSame('https://github.mwop.net', $this->getAttributeValue($provider, 'url')); + $this->assertSame('https://github.example.org', $this->getAttributeValue($provider, 'url')); $this->assertSame('this-is-a-github-token', $this->getAttributeValue($provider, 'token')); } } diff --git a/test/Config/RetrieveInputOptionsListenerTest.php b/test/Config/RetrieveInputOptionsListenerTest.php index 8d55f301..6d6140aa 100644 --- a/test/Config/RetrieveInputOptionsListenerTest.php +++ b/test/Config/RetrieveInputOptionsListenerTest.php @@ -121,7 +121,7 @@ public function testCanPopulateProviderFromProviderOption() ->will($this->returnValueMap([ ['provider', 'gitlab'], ['provider-token', 'this-is-the-token'], - ['provider-url', 'https://git.mwop.net'], + ['provider-url', 'https://git.example.org'], ['package', 'some/package'], ])); diff --git a/test/ConfigCommand/ShowMergedConfigListenerTest.php b/test/ConfigCommand/ShowMergedConfigListenerTest.php index e8623d7e..655d3509 100644 --- a/test/ConfigCommand/ShowMergedConfigListenerTest.php +++ b/test/ConfigCommand/ShowMergedConfigListenerTest.php @@ -72,7 +72,7 @@ public function testNotifiesEventToDisplayMergedConfig() TestCase::assertSame('CHANGELOG.txt', $config['defaults']['changelog_file']); TestCase::assertSame('github', $config['defaults']['provider']); TestCase::assertSame('origin', $config['defaults']['remote']); - TestCase::assertSame('https://github.mwop.net', $config['providers']['github']['url']); + TestCase::assertSame('https://github.example.org', $config['providers']['github']['url']); return true; })); diff --git a/test/Entry/PrependIssueLinkListenerTest.php b/test/Entry/PrependIssueLinkListenerTest.php index 2369100b..ea50e5a6 100644 --- a/test/Entry/PrependIssueLinkListenerTest.php +++ b/test/Entry/PrependIssueLinkListenerTest.php @@ -82,7 +82,7 @@ public function generateEmptyLinkRequested(ProviderInterface&MockObject $provide */ public function generateLinkRequested(ProviderInterface&MockObject $provider): void { - $this->link = sprintf('[#%s](https://git.mwop.net/issue/%s)', $this->identifier, $this->identifier); + $this->link = sprintf('[#%s](https://git.example.org/issue/%s)', $this->identifier, $this->identifier); $provider ->expects($this->atLeastOnce()) ->method('generateIssueLink') diff --git a/test/Entry/PrependPatchLinkListenerTest.php b/test/Entry/PrependPatchLinkListenerTest.php index fac503fc..dff9fd2f 100644 --- a/test/Entry/PrependPatchLinkListenerTest.php +++ b/test/Entry/PrependPatchLinkListenerTest.php @@ -82,7 +82,7 @@ public function generateEmptyLinkRequested(ProviderInterface&MockObject $provide */ public function generateLinkRequested(ProviderInterface&MockObject $provider): void { - $this->link = sprintf('[#%s](https://git.mwop.net/issue/%s)', $this->identifier, $this->identifier); + $this->link = sprintf('[#%s](https://git.example.org/issue/%s)', $this->identifier, $this->identifier); $provider ->expects($this->atLeastOnce()) ->method('generatePatchLink') diff --git a/test/Provider/ProviderSpecTest.php b/test/Provider/ProviderSpecTest.php index 17ef41c1..35684e64 100644 --- a/test/Provider/ProviderSpecTest.php +++ b/test/Provider/ProviderSpecTest.php @@ -79,13 +79,13 @@ public function testSetsUrlInCreatedProviderWhenPresentInSpec() { $spec = new ProviderSpec('test'); $spec->setClassName(Provider::class); - $spec->setUrl('https://mwop.net'); + $spec->setUrl('https://example.org'); $provider = $spec->createProvider(); $this->assertInstanceOf(Provider::class, $provider); $this->assertNull($provider->package); $this->assertNull($provider->token); - $this->assertSame('https://mwop.net', $provider->url); + $this->assertSame('https://example.org', $provider->url); } } diff --git a/test/_files/config/keep-a-changelog.ini b/test/_files/config/keep-a-changelog.ini index 60ce6a54..8e6afbf0 100644 --- a/test/_files/config/keep-a-changelog.ini +++ b/test/_files/config/keep-a-changelog.ini @@ -5,7 +5,7 @@ remote = upstream [providers] github[class] = Phly\KeepAChangelog\Provider\GitHub -github[url] = https://github.mwop.net +github[url] = https://github.example.org github[token] = this-is-a-github-token gitlab[class] = Phly\KeepAChangelog\Provider\GitLab gitlab[token] = this-is-a-gitlab-token diff --git a/test/_files/config/local/.keep-a-changelog.ini b/test/_files/config/local/.keep-a-changelog.ini index 2609762b..79817acd 100644 --- a/test/_files/config/local/.keep-a-changelog.ini +++ b/test/_files/config/local/.keep-a-changelog.ini @@ -5,5 +5,5 @@ remote = origin [providers] github[class] = Phly\KeepAChangelog\Provider\GitHub -github[url] = https://github.mwop.net +github[url] = https://github.example.org gitlab[class] = Phly\KeepAChangelog\Provider\GitLab