Skip to content

Commit d7d8874

Browse files
committed
remove changes from #994
1 parent fd3f0ce commit d7d8874

2 files changed

Lines changed: 0 additions & 12 deletions

File tree

app/Services/MediaWikiHostResolver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,6 @@ public function getBackendHostForDomain(string $domain): string {
3737
public function getMwVersionForDomain(string $domain): string {
3838
$wiki = Wiki::where('domain', $domain)->first();
3939

40-
if (!$wiki) {
41-
throw new UnknownWikiDomainException("Unknown Wiki Domain '{$domain}'.");
42-
}
4340

4441
$dbVersion = $wiki->wikiDb->version;
4542

tests/Services/MediaWikiHostResolverTest.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,4 @@ public function testResolverThrowsIfUnableToFindHostInMap(): void {
4444
UnknownDBVersionException::class
4545
);
4646
}
47-
48-
public function testResolverThrowsIfUnableToFindWiki(): void {
49-
$domain = (new Factory)->create()->unique()->text(30);
50-
$resolver = new MediaWikiHostResolver;
51-
$this->assertThrows(
52-
fn () => $resolver->getBackendHostForDomain($domain),
53-
UnknownWikiDomainException::class
54-
);
55-
}
5647
}

0 commit comments

Comments
 (0)