mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-14 19:26:42 +00:00
Use MediaWiki\ResourceLoader\Context instead of ResourceLoaderContext
ResourceLoaderContext is deprecated since 1.39. Change-Id: I466cd4d0c9dcd17fe7de95959a64db5459e288e1
This commit is contained in:
parent
04019da168
commit
981555e528
|
@ -8,6 +8,7 @@ namespace MediaWiki\Skins\Vector\Tests\Integration;
|
||||||
|
|
||||||
use HashConfig;
|
use HashConfig;
|
||||||
use MediaWiki\Request\FauxRequest;
|
use MediaWiki\Request\FauxRequest;
|
||||||
|
use MediaWiki\ResourceLoader\Context;
|
||||||
use MediaWiki\Skins\Vector\Constants;
|
use MediaWiki\Skins\Vector\Constants;
|
||||||
use MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement;
|
use MediaWiki\Skins\Vector\FeatureManagement\Requirements\LimitedWidthContentRequirement;
|
||||||
use MediaWiki\Skins\Vector\Hooks;
|
use MediaWiki\Skins\Vector\Hooks;
|
||||||
|
@ -18,7 +19,6 @@ use MediaWiki\User\Options\UserOptionsManager;
|
||||||
use MediaWikiIntegrationTestCase;
|
use MediaWikiIntegrationTestCase;
|
||||||
use ReflectionMethod;
|
use ReflectionMethod;
|
||||||
use RequestContext;
|
use RequestContext;
|
||||||
use ResourceLoaderContext;
|
|
||||||
use RuntimeException;
|
use RuntimeException;
|
||||||
use User;
|
use User;
|
||||||
|
|
||||||
|
@ -341,7 +341,7 @@ class VectorHooksTest extends MediaWikiIntegrationTestCase {
|
||||||
public function testGetActiveABTest( $configData, $expected ) {
|
public function testGetActiveABTest( $configData, $expected ) {
|
||||||
$config = new HashConfig( $configData );
|
$config = new HashConfig( $configData );
|
||||||
$vectorConfig = Hooks::getActiveABTest(
|
$vectorConfig = Hooks::getActiveABTest(
|
||||||
$this->createMock( ResourceLoaderContext::class ),
|
$this->createMock( Context::class ),
|
||||||
$config
|
$config
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -359,7 +359,7 @@ class VectorHooksTest extends MediaWikiIntegrationTestCase {
|
||||||
$config = new HashConfig( $configData );
|
$config = new HashConfig( $configData );
|
||||||
$this->expectException( RuntimeException::class );
|
$this->expectException( RuntimeException::class );
|
||||||
Hooks::getActiveABTest(
|
Hooks::getActiveABTest(
|
||||||
$this->createMock( ResourceLoaderContext::class ),
|
$this->createMock( Context::class ),
|
||||||
$config
|
$config
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue