mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-23 15:56:52 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I45053ede3898b5c886a8182659466d321126ac1f
This commit is contained in:
parent
65b0eb6e88
commit
90040f278a
|
@ -6,8 +6,8 @@ use ApiBase;
|
|||
use ApiMain;
|
||||
use ApiQueryBase;
|
||||
use ApiUsageException;
|
||||
use Config;
|
||||
use ConfigFactory;
|
||||
use MediaWiki\Config\Config;
|
||||
use MediaWiki\Config\ConfigFactory;
|
||||
use MediaWiki\Languages\LanguageConverterFactory;
|
||||
use MediaWiki\Logger\LoggerFactory;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
|
|
|
@ -3,6 +3,8 @@
|
|||
namespace TextExtracts\Test;
|
||||
|
||||
use ILanguageConverter;
|
||||
use MediaWiki\Config\ConfigFactory;
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\Languages\LanguageConverterFactory;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiCoversValidator;
|
||||
|
@ -20,11 +22,11 @@ class ApiQueryExtractsTest extends \MediaWikiIntegrationTestCase {
|
|||
use MediaWikiCoversValidator;
|
||||
|
||||
private function newInstance() {
|
||||
$config = new \HashConfig( [
|
||||
$config = new HashConfig( [
|
||||
'ParserCacheExpireTime' => ExpirationAwareness::TTL_INDEFINITE,
|
||||
] );
|
||||
|
||||
$configFactory = $this->createMock( \ConfigFactory::class );
|
||||
$configFactory = $this->createMock( ConfigFactory::class );
|
||||
$configFactory->method( 'makeConfig' )
|
||||
->with( 'textextracts' )
|
||||
->willReturn( $config );
|
||||
|
|
Loading…
Reference in a new issue