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: Ie00aedfe607665e8a38ee4ce2475f25b82a1d8cf
This commit is contained in:
parent
4644cc17bb
commit
15dbbe94d5
|
@ -12,13 +12,13 @@ use MediaWiki\Hook\ParserTestGlobalsHook;
|
|||
use MediaWiki\Http\HttpRequestFactory;
|
||||
use MediaWiki\Linker\LinksMigration;
|
||||
use MediaWiki\Page\PageReference;
|
||||
use MediaWiki\Parser\ParserOutput;
|
||||
use MediaWiki\Title\TitleFactory;
|
||||
use PageImages\PageImageCandidate;
|
||||
use PageImages\PageImages;
|
||||
use Parser;
|
||||
use ParserOutput;
|
||||
use RepoGroup;
|
||||
use RuntimeException;
|
||||
use TitleFactory;
|
||||
use WANObjectCache;
|
||||
use Wikimedia\Rdbms\IConnectionProvider;
|
||||
|
||||
|
|
|
@ -12,10 +12,10 @@ use MediaWiki\Cache\CacheKeyHelper;
|
|||
use MediaWiki\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Hook\InfoActionHook;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Request\FauxRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\Options\UserOptionsLookup;
|
||||
use OutputPage;
|
||||
use RepoGroup;
|
||||
use Skin;
|
||||
use Wikimedia\Rdbms\IConnectionProvider;
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace PageImages\Tests;
|
||||
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Title\Title;
|
||||
use PageImages\ApiQueryPageImages;
|
||||
|
@ -24,7 +25,7 @@ use Wikimedia\TestingAccessWrapper;
|
|||
class ApiQueryPageImagesTest extends TestCase {
|
||||
|
||||
private function newInstance() {
|
||||
$config = new \HashConfig( [
|
||||
$config = new HashConfig( [
|
||||
'PageImagesAPIDefaultLicense' => 'free'
|
||||
] );
|
||||
|
||||
|
|
|
@ -6,6 +6,7 @@ use File;
|
|||
use MediaWiki\Http\HttpRequestFactory;
|
||||
use MediaWiki\Linker\LinksMigration;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\Title\TitleFactory;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use PageImages\Hooks\ParserFileProcessingHookHandlers;
|
||||
use PageImages\PageImageCandidate;
|
||||
|
@ -13,7 +14,6 @@ use PageImages\PageImages;
|
|||
use Parser;
|
||||
use ParserOptions;
|
||||
use RepoGroup;
|
||||
use TitleFactory;
|
||||
use WANObjectCache;
|
||||
use Wikimedia\Rdbms\IConnectionProvider;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
|
|
@ -3,10 +3,11 @@
|
|||
namespace PageImages\Tests;
|
||||
|
||||
use IContextSource;
|
||||
use MediaWiki\Config\HashConfig;
|
||||
use MediaWiki\Output\OutputPage;
|
||||
use MediaWiki\Request\FauxRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use OutputPage;
|
||||
use PageImages\PageImages;
|
||||
use SkinTemplate;
|
||||
|
||||
|
@ -119,7 +120,7 @@ class PageImagesTest extends MediaWikiIntegrationTestCase {
|
|||
$context->method( 'getTitle' )
|
||||
->willReturn( $this->newTitle() );
|
||||
$fauxRequest = new FauxRequest();
|
||||
$config = new \HashConfig( $config );
|
||||
$config = new HashConfig( $config );
|
||||
$context->method( 'getRequest' )
|
||||
->willReturn( $fauxRequest );
|
||||
$context->method( 'getConfig' )
|
||||
|
|
Loading…
Reference in a new issue