X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FResourceLoaderTestCase.php;h=d5c14a2558d34cc063240cd3ca8d00c7fd988a4c;hb=c7246fc2017718ed5f8f3ae056be478678f8a021;hp=1024ecd0a69718e22530343c212ef793882cb25e;hpb=c355cc53ab6d36498aede46a016521d7bd8ce071;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/ResourceLoaderTestCase.php b/tests/phpunit/ResourceLoaderTestCase.php index 1024ecd0a6..d5c14a2558 100644 --- a/tests/phpunit/ResourceLoaderTestCase.php +++ b/tests/phpunit/ResourceLoaderTestCase.php @@ -40,7 +40,7 @@ abstract class ResourceLoaderTestCase extends MediaWikiTestCase { 'skin' => $options['skin'], 'target' => 'phpunit', ] ); - $ctx = $this->getMockBuilder( 'ResourceLoaderContext' ) + $ctx = $this->getMockBuilder( ResourceLoaderContext::class ) ->setConstructorArgs( [ $resourceLoader, $request ] ) ->setMethods( [ 'getDirection' ] ) ->getMock(); @@ -61,7 +61,6 @@ abstract class ResourceLoaderTestCase extends MediaWikiTestCase { // For wfScript() 'ScriptPath' => '/w', - 'ScriptExtension' => '.php', 'Script' => '/w/index.php', 'LoadScript' => '/w/load.php', ]; @@ -87,7 +86,6 @@ class ResourceLoaderTestModule extends ResourceLoaderModule { protected $dependencies = []; protected $group = null; protected $source = 'local'; - protected $position = 'bottom'; protected $script = ''; protected $styles = ''; protected $skipFunction = null; @@ -126,9 +124,6 @@ class ResourceLoaderTestModule extends ResourceLoaderModule { public function getSource() { return $this->source; } - public function getPosition() { - return $this->position; - } public function getType() { return $this->type;