Use namespaced classes

Change-Id: Ic2db9150469e64bb0f478cf0c431d9f5824a23c9
This commit is contained in:
Umherirrender 2024-06-10 21:59:11 +02:00
parent 0261dce3a7
commit ee51b400b0

View file

@ -5,7 +5,9 @@ namespace TextExtracts\Test;
use ILanguageConverter;
use MediaWiki\Config\ConfigFactory;
use MediaWiki\Config\HashConfig;
use MediaWiki\Context\IContextSource;
use MediaWiki\Languages\LanguageConverterFactory;
use MediaWiki\Message\Message;
use MediaWiki\Title\Title;
use MediaWikiCoversValidator;
use TextExtracts\ApiQueryExtracts;
@ -33,12 +35,12 @@ class ApiQueryExtractsTest extends \MediaWikiIntegrationTestCase {
$cache = new \WANObjectCache( [ 'cache' => new \HashBagOStuff() ] );
$context = $this->createMock( \IContextSource::class );
$context = $this->createMock( IContextSource::class );
$context->method( 'getConfig' )
->willReturn( $config );
$context->method( 'msg' )
->willReturnCallback( function ( $key, ...$params ) {
$msg = $this->createMock( \Message::class );
$msg = $this->createMock( Message::class );
$msg->method( 'text' )->willReturn( "($key)" );
return $msg;
} );