mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-27 09:30:09 +00:00
Use namespaced classes
Change-Id: Ic2db9150469e64bb0f478cf0c431d9f5824a23c9
This commit is contained in:
parent
0261dce3a7
commit
ee51b400b0
|
@ -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;
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue