Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Services/MediaWikiHostResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function getBackendHostForDomain(string $domain): string {
return sprintf('mediawiki-%s-app-backend.default.svc.cluster.local', $this->getMwVersionForDomain($domain));
}

public function getMwVersionForDomain(string $domain): string {
private function getMwVersionForDomain(string $domain): string {
$wiki = Wiki::where('domain', $domain)->first();

if (!$wiki) {
Expand Down
7 changes: 0 additions & 7 deletions tests/Services/MediaWikiHostResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
class MediaWikiHostResolverTest extends TestCase {
use RefreshDatabase;

public function testGetMwVersionForDomain(): void {
$domain = (new Factory)->create()->unique()->text(30);
$this->createWiki($domain, 'mw1.43-wbs1');
$resolver = new MediaWikiHostResolver;
$this->assertSame('143', $resolver->getMwVersionForDomain($domain));
}

public function testResolverRoutesToCorrectHost(): void {
$domain = (new Factory)->create()->unique()->text(30);
$this->createWiki($domain, 'mw1.39-wbs1');
Expand Down
Loading