aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2021-02-07 14:39:00 +0100
committerReedy <reedy@wikimedia.org>2021-02-07 14:45:23 +0000
commit5be438c0a686ef2649495c34f7c9403e69ecbf77 (patch)
tree13e0223df472195bc733eabd79eee3e0df67c232 /tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
parent729f20afc850aa18b39ae335fd07a872fc29685b (diff)
downloadmediawikicore-5be438c0a686ef2649495c34f7c9403e69ecbf77.tar.gz
mediawikicore-5be438c0a686ef2649495c34f7c9403e69ecbf77.zip
Call non-static function non-static in ResourceLoaderTest
Change-Id: I334d139a1b4e7bed76db6d5d67fa7db89cfe12fc
Diffstat (limited to 'tests/phpunit/includes/resourceloader/ResourceLoaderTest.php')
-rw-r--r--tests/phpunit/includes/resourceloader/ResourceLoaderTest.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
index 2f4cb997ff19..891ee424e846 100644
--- a/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
+++ b/tests/phpunit/includes/resourceloader/ResourceLoaderTest.php
@@ -760,7 +760,7 @@ END
'foo' => [ 'class' => ResourceLoaderTestModule::class ],
'ferry' => [
'factory' => function () {
- return self::getFailFerryMock();
+ return $this->getFailFerryMock();
}
],
'bar' => [ 'class' => ResourceLoaderTestModule::class ],
@@ -850,7 +850,7 @@ END
public function testMakeModuleResponseConcat( $scripts, $expected, $debug, $message = null ) {
$rl = new EmptyResourceLoader();
$modules = array_map( function ( $script ) {
- return self::getSimpleModuleMock( $script );
+ return $this->getSimpleModuleMock( $script );
}, $scripts );
$context = $this->getResourceLoaderContext(
@@ -891,9 +891,9 @@ END
*/
public function testMakeModuleResponseError() {
$modules = [
- 'foo' => self::getSimpleModuleMock( 'foo();' ),
- 'ferry' => self::getFailFerryMock(),
- 'bar' => self::getSimpleModuleMock( 'bar();' ),
+ 'foo' => $this->getSimpleModuleMock( 'foo();' ),
+ 'ferry' => $this->getFailFerryMock(),
+ 'bar' => $this->getSimpleModuleMock( 'bar();' ),
];
$rl = new EmptyResourceLoader();
$context = $this->getResourceLoaderContext(
@@ -931,7 +931,7 @@ END
public function testMakeModuleResponseErrorCSS() {
$modules = [
'foo' => self::getSimpleStyleModuleMock( '.foo{}' ),
- 'ferry' => self::getFailFerryMock( 'getStyles' ),
+ 'ferry' => $this->getFailFerryMock( 'getStyles' ),
'bar' => self::getSimpleStyleModuleMock( '.bar{}' ),
];
$rl = new EmptyResourceLoader();
@@ -972,13 +972,13 @@ END
$rl = new EmptyResourceLoader( MediaWikiServices::getInstance()->getMainConfig() );
$rl->register( [
'foo' => [ 'factory' => function () {
- return self::getSimpleModuleMock( 'foo();' );
+ return $this->getSimpleModuleMock( 'foo();' );
} ],
'ferry' => [ 'factory' => function () {
- return self::getFailFerryMock();
+ return $this->getFailFerryMock();
} ],
'bar' => [ 'factory' => function () {
- return self::getSimpleModuleMock( 'bar();' );
+ return $this->getSimpleModuleMock( 'bar();' );
} ],
] );
$context = $this->getResourceLoaderContext(