From 71e31619f2a3c3fcaca6c714094b271ac5e4622c Mon Sep 17 00:00:00 2001 From: gerritbot Date: Sat, 19 Aug 2023 04:19:49 +0000 Subject: [PATCH] Replace some moved Title class uses, now MediaWiki\Title\Title Bug: T321681 Change-Id: I09a9c9f6294c9988feb3c2eba46ffde73996b3d3 --- includes/ApiQueryExtracts.php | 2 +- tests/phpunit/ApiQueryExtractsTest.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/ApiQueryExtracts.php b/includes/ApiQueryExtracts.php index 6f196c9..7427458 100644 --- a/includes/ApiQueryExtracts.php +++ b/includes/ApiQueryExtracts.php @@ -13,8 +13,8 @@ use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; use MediaWiki\Page\WikiPageFactory; use MediaWiki\Request\FauxRequest; +use MediaWiki\Title\Title; use ParserOptions; -use Title; use WANObjectCache; use Wikimedia\ParamValidator\ParamValidator; use WikiPage; diff --git a/tests/phpunit/ApiQueryExtractsTest.php b/tests/phpunit/ApiQueryExtractsTest.php index a9ca5dc..f2ab143 100644 --- a/tests/phpunit/ApiQueryExtractsTest.php +++ b/tests/phpunit/ApiQueryExtractsTest.php @@ -4,6 +4,7 @@ namespace TextExtracts\Test; use ILanguageConverter; use MediaWiki\Languages\LanguageConverterFactory; +use MediaWiki\Title\Title; use MediaWikiCoversValidator; use TextExtracts\ApiQueryExtracts; use Wikimedia\LightweightObjectStore\ExpirationAwareness; @@ -68,7 +69,7 @@ class ApiQueryExtractsTest extends \MediaWikiIntegrationTestCase { } public function testMemCacheHelpers() { - $title = $this->createMock( \Title::class ); + $title = $this->createMock( Title::class ); $title->method( 'getPageLanguage' ) ->willReturn( $this->createMock( \Language::class ) );