mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-23 16:06:44 +00:00
Use namespaced classes
Changes to the use statements done automatically via script Addition of missing use statement done manually Change-Id: I6b49b9837ed6d3dfdd8a4bc0420848c09fcb1540
This commit is contained in:
parent
b31bfd8fb2
commit
bbbcca4b38
|
@ -2,9 +2,9 @@
|
|||
|
||||
namespace PageImages;
|
||||
|
||||
use ApiBase;
|
||||
use ApiQuery;
|
||||
use ApiQueryBase;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiQuery;
|
||||
use MediaWiki\Api\ApiQueryBase;
|
||||
use MediaWiki\Page\PageReference;
|
||||
use MediaWiki\Page\PageReferenceValue;
|
||||
use RepoGroup;
|
||||
|
|
|
@ -21,7 +21,7 @@ use PageImages\PageImageCandidate;
|
|||
use PageImages\PageImages;
|
||||
use RepoGroup;
|
||||
use RuntimeException;
|
||||
use WANObjectCache;
|
||||
use Wikimedia\ObjectCache\WANObjectCache;
|
||||
use Wikimedia\Rdbms\IConnectionProvider;
|
||||
|
||||
/**
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
namespace PageImages;
|
||||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use File;
|
||||
use MapCacheLRU;
|
||||
use MediaWiki\Api\ApiBase;
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\Hook\ApiOpenSearchSuggestHook;
|
||||
use MediaWiki\Cache\CacheKeyHelper;
|
||||
use MediaWiki\Config\Config;
|
||||
|
|
|
@ -6,6 +6,7 @@ if ( $IP === false ) {
|
|||
}
|
||||
require_once "$IP/maintenance/Maintenance.php";
|
||||
|
||||
use MediaWiki\Maintenance\Maintenance;
|
||||
use MediaWiki\Title\Title;
|
||||
use PageImages\Job\InitImageDataJob;
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace PageImages\Tests;
|
||||
|
||||
use ApiPageSet;
|
||||
use MediaWiki\Api\ApiPageSet;
|
||||
use PageImages\ApiQueryPageImages;
|
||||
|
||||
class ApiQueryPageImagesProxyMock extends ApiQueryPageImages {
|
||||
|
|
|
@ -2,6 +2,9 @@
|
|||
|
||||
namespace PageImages\Tests;
|
||||
|
||||
use MediaWiki\Api\ApiMain;
|
||||
use MediaWiki\Api\ApiPageSet;
|
||||
use MediaWiki\Api\ApiQuery;
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\Context\IContextSource;
|
||||
use MediaWiki\Page\PageReferenceValue;
|
||||
|
@ -34,12 +37,12 @@ class ApiQueryPageImagesTest extends MediaWikiIntegrationTestCase {
|
|||
$context->method( 'getConfig' )
|
||||
->willReturn( $config );
|
||||
|
||||
$main = $this->createMock( \ApiMain::class );
|
||||
$main = $this->createMock( ApiMain::class );
|
||||
$main->expects( $this->once() )
|
||||
->method( 'getContext' )
|
||||
->willReturn( $context );
|
||||
|
||||
$query = $this->createMock( \ApiQuery::class );
|
||||
$query = $this->createMock( ApiQuery::class );
|
||||
$query->expects( $this->once() )
|
||||
->method( 'getMain' )
|
||||
->willReturn( $main );
|
||||
|
@ -92,7 +95,7 @@ class ApiQueryPageImagesTest extends MediaWikiIntegrationTestCase {
|
|||
$expected[$id] = PageReferenceValue::localReference( $titleValue->getNamespace(), $titleValue->getDBkey() );
|
||||
}
|
||||
|
||||
$pageSet = $this->createMock( \ApiPageSet::class );
|
||||
$pageSet = $this->createMock( ApiPageSet::class );
|
||||
$pageSet->method( 'getGoodPages' )
|
||||
->willReturn( $titles );
|
||||
$pageSet->method( 'getMissingTitlesByNamespace' )
|
||||
|
|
|
@ -8,15 +8,15 @@ use MediaWiki\Config\HashConfig;
|
|||
use MediaWiki\Http\HttpRequestFactory;
|
||||
use MediaWiki\Linker\LinksMigration;
|
||||
use MediaWiki\Parser\Parser;
|
||||
use MediaWiki\Parser\ParserOptions;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Title\TitleFactory;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use PageImages\Hooks\ParserFileProcessingHookHandlers;
|
||||
use PageImages\PageImageCandidate;
|
||||
use PageImages\PageImages;
|
||||
use ParserOptions;
|
||||
use RepoGroup;
|
||||
use WANObjectCache;
|
||||
use Wikimedia\ObjectCache\WANObjectCache;
|
||||
use Wikimedia\Rdbms\IConnectionProvider;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
|
|
Loading…
Reference in a new issue