aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/jobqueue/JobQueueTest.php
diff options
context:
space:
mode:
authorAlexander Vorwerk <alexander.vorwerk@stud.uni-goettingen.de>2021-12-21 01:47:14 +0100
committerZabe <alexander.vorwerk@stud.uni-goettingen.de>2021-12-21 02:05:55 +0000
commit9f9426697caa438ca4d9a2ac8ada1949fd6723ee (patch)
treebd2a8eb8c7fd44c9051051ddcc901e88cbcf1220 /tests/phpunit/includes/jobqueue/JobQueueTest.php
parent55b37667550960ec796115f60538998c81268705 (diff)
downloadmediawikicore-9f9426697caa438ca4d9a2ac8ada1949fd6723ee.tar.gz
mediawikicore-9f9426697caa438ca4d9a2ac8ada1949fd6723ee.zip
Replace usages of deprecated wfWikiID()
The global function wfWikiID() is deprecated since 1.35 and it's usages should be replaced with WikiMap::getCurrentWikiId(). Bug: T298059 Change-Id: I22d96b7aec17323d15a9bc401d4511ad2ee14165
Diffstat (limited to 'tests/phpunit/includes/jobqueue/JobQueueTest.php')
-rw-r--r--tests/phpunit/includes/jobqueue/JobQueueTest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/jobqueue/JobQueueTest.php b/tests/phpunit/includes/jobqueue/JobQueueTest.php
index 73c392dd85e9..83bdb7ffb138 100644
--- a/tests/phpunit/includes/jobqueue/JobQueueTest.php
+++ b/tests/phpunit/includes/jobqueue/JobQueueTest.php
@@ -75,7 +75,7 @@ class JobQueueTest extends MediaWikiIntegrationTestCase {
if ( !$queue ) {
$this->markTestSkipped( $desc );
}
- $this->assertEquals( wfWikiID(), $queue->getWiki(), "Proper wiki ID ($desc)" );
+ $this->assertEquals( WikiMap::getCurrentWikiId(), $queue->getWiki(), "Proper wiki ID ($desc)" );
$this->assertEquals(
WikiMap::getCurrentWikiDbDomain()->getId(),
$queue->getDomain(),