mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-24 00:13:27 +00:00
Use namespaced MediaWiki\Request\FauxRequest
Bug: T321681 Change-Id: I9c6b8bfc935a47c62c3e106a1bf4532ef4d12134
This commit is contained in:
parent
0f44aa4b05
commit
b8dd616a03
|
@ -4,7 +4,6 @@ namespace PageImages;
|
|||
|
||||
use ApiBase;
|
||||
use ApiMain;
|
||||
use FauxRequest;
|
||||
use File;
|
||||
use IContextSource;
|
||||
use MapCacheLRU;
|
||||
|
@ -13,6 +12,7 @@ use MediaWiki\Cache\CacheKeyHelper;
|
|||
use MediaWiki\Hook\BeforePageDisplayHook;
|
||||
use MediaWiki\Hook\InfoActionHook;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\Request\FauxRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWiki\User\UserOptionsLookup;
|
||||
use OutputPage;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
namespace PageImages\Tests;
|
||||
|
||||
use IContextSource;
|
||||
use MediaWiki\Request\FauxRequest;
|
||||
use MediaWiki\Title\Title;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use OutputPage;
|
||||
|
@ -110,7 +111,7 @@ class PageImagesTest extends MediaWikiIntegrationTestCase {
|
|||
$context = $this->createMock( IContextSource::class );
|
||||
$context->method( 'getTitle' )
|
||||
->willReturn( $this->newTitle() );
|
||||
$fauxRequest = new \FauxRequest();
|
||||
$fauxRequest = new FauxRequest();
|
||||
$config = new \HashConfig( $config );
|
||||
$context->method( 'getRequest' )
|
||||
->willReturn( $fauxRequest );
|
||||
|
|
Loading…
Reference in a new issue