aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/GlobalFunctions
diff options
context:
space:
mode:
authorAlexander Vorwerk <alexander.vorwerk@stud.uni-goettingen.de>2022-03-29 18:11:05 +0200
committerAlexander Vorwerk <alexander.vorwerk@stud.uni-goettingen.de>2022-03-29 18:11:05 +0200
commit0bbc23891978cf967fd58229ce2eb8ad5c493f9c (patch)
tree8aaa54f5a9b442dfbc38bd22efdf12d38a3a3541 /tests/phpunit/includes/GlobalFunctions
parentb1d6c07e7d0614772c040953261e371b13450842 (diff)
downloadmediawikicore-0bbc23891978cf967fd58229ce2eb8ad5c493f9c.tar.gz
mediawikicore-0bbc23891978cf967fd58229ce2eb8ad5c493f9c.zip
Remove deprecated global function wfWikiID()
deprecated since 1.35 and unused Bug: T298059 Change-Id: I0c601b67beaf8218b7fd7ca46a8caeb1452f4d76
Diffstat (limited to 'tests/phpunit/includes/GlobalFunctions')
-rw-r--r--tests/phpunit/includes/GlobalFunctions/GlobalTest.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php
index 190e492a13ca..39223fe4d0a1 100644
--- a/tests/phpunit/includes/GlobalFunctions/GlobalTest.php
+++ b/tests/phpunit/includes/GlobalFunctions/GlobalTest.php
@@ -580,30 +580,6 @@ class GlobalTest extends MediaWikiIntegrationTestCase {
$this->assertEquals( $expected, $actual, $description );
}
- /**
- * @covers ::wfWikiID
- */
- public function testWfWikiID() {
- $this->hideDeprecated( 'wfWikiID' );
- $this->setMwGlobals( [
- 'wgDBname' => 'example',
- 'wgDBprefix' => '',
- ] );
- $this->assertEquals(
- wfWikiID(),
- 'example'
- );
-
- $this->setMwGlobals( [
- 'wgDBname' => 'example',
- 'wgDBprefix' => 'mw_',
- ] );
- $this->assertEquals(
- wfWikiID(),
- 'example-mw_'
- );
- }
-
public static function provideWfShellWikiCmdList() {
global $wgPhpCli;