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:
Umherirrender 2024-01-04 22:22:49 +01:00
parent 65b0eb6e88
commit 90040f278a
2 changed files with 6 additions and 4 deletions

View file

@ -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;

View file

@ -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 );