mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-27 17:40:16 +00:00
Replace some moved Title class uses, now MediaWiki\Title\Title
Bug: T321681 Change-Id: I09a9c9f6294c9988feb3c2eba46ffde73996b3d3
This commit is contained in:
parent
2a12962ecf
commit
71e31619f2
|
@ -13,8 +13,8 @@ use MediaWiki\Logger\LoggerFactory;
|
||||||
use MediaWiki\MediaWikiServices;
|
use MediaWiki\MediaWikiServices;
|
||||||
use MediaWiki\Page\WikiPageFactory;
|
use MediaWiki\Page\WikiPageFactory;
|
||||||
use MediaWiki\Request\FauxRequest;
|
use MediaWiki\Request\FauxRequest;
|
||||||
|
use MediaWiki\Title\Title;
|
||||||
use ParserOptions;
|
use ParserOptions;
|
||||||
use Title;
|
|
||||||
use WANObjectCache;
|
use WANObjectCache;
|
||||||
use Wikimedia\ParamValidator\ParamValidator;
|
use Wikimedia\ParamValidator\ParamValidator;
|
||||||
use WikiPage;
|
use WikiPage;
|
||||||
|
|
|
@ -4,6 +4,7 @@ namespace TextExtracts\Test;
|
||||||
|
|
||||||
use ILanguageConverter;
|
use ILanguageConverter;
|
||||||
use MediaWiki\Languages\LanguageConverterFactory;
|
use MediaWiki\Languages\LanguageConverterFactory;
|
||||||
|
use MediaWiki\Title\Title;
|
||||||
use MediaWikiCoversValidator;
|
use MediaWikiCoversValidator;
|
||||||
use TextExtracts\ApiQueryExtracts;
|
use TextExtracts\ApiQueryExtracts;
|
||||||
use Wikimedia\LightweightObjectStore\ExpirationAwareness;
|
use Wikimedia\LightweightObjectStore\ExpirationAwareness;
|
||||||
|
@ -68,7 +69,7 @@ class ApiQueryExtractsTest extends \MediaWikiIntegrationTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testMemCacheHelpers() {
|
public function testMemCacheHelpers() {
|
||||||
$title = $this->createMock( \Title::class );
|
$title = $this->createMock( Title::class );
|
||||||
$title->method( 'getPageLanguage' )
|
$title->method( 'getPageLanguage' )
|
||||||
->willReturn( $this->createMock( \Language::class ) );
|
->willReturn( $this->createMock( \Language::class ) );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue