dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add @covers for RemexStripTagHandler
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
resourceloader
/
ResourceLoaderOOUIImageModuleTest.php
diff --git
a/tests/phpunit/includes/resourceloader/ResourceLoaderOOUIImageModuleTest.php
b/tests/phpunit/includes/resourceloader/ResourceLoaderOOUIImageModuleTest.php
index
4e482c8
..
ea220f1
100644
(file)
--- a/
tests/phpunit/includes/resourceloader/ResourceLoaderOOUIImageModuleTest.php
+++ b/
tests/phpunit/includes/resourceloader/ResourceLoaderOOUIImageModuleTest.php
@@
-10,7
+10,7
@@
class ResourceLoaderOOUIImageModuleTest extends ResourceLoaderTestCase {
*/
public function testNonDefaultSkin() {
$module = new ResourceLoaderOOUIImageModule( [
*/
public function testNonDefaultSkin() {
$module = new ResourceLoaderOOUIImageModule( [
- 'class' =>
'ResourceLoaderOOUIImageModule'
,
+ 'class' =>
ResourceLoaderOOUIImageModule::class
,
'name' => 'icons',
'rootPath' => 'tests/phpunit/data/resourceloader/oouiimagemodule',
] );
'name' => 'icons',
'rootPath' => 'tests/phpunit/data/resourceloader/oouiimagemodule',
] );
@@
-22,7
+22,7
@@
class ResourceLoaderOOUIImageModuleTest extends ResourceLoaderTestCase {
function () {
}
);
function () {
}
);
- $r = new ReflectionMethod(
'ExtensionRegistry'
, 'exportExtractedData' );
+ $r = new ReflectionMethod(
ExtensionRegistry::class
, 'exportExtractedData' );
$r->setAccessible( true );
$r->invoke( ExtensionRegistry::getInstance(), [
'globals' => [],
$r->setAccessible( true );
$r->invoke( ExtensionRegistry::getInstance(), [
'globals' => [],
@@
-39,7
+39,7
@@
class ResourceLoaderOOUIImageModuleTest extends ResourceLoaderTestCase {
$styles = $module->getStyles( $this->getResourceLoaderContext( [ 'skin' => 'fakemonobook' ] ) );
$this->assertRegExp(
$styles = $module->getStyles( $this->getResourceLoaderContext( [ 'skin' => 'fakemonobook' ] ) );
$this->assertRegExp(
- '/
magnifying-glass
-apex/',
+ '/
stu
-apex/',
$styles['all'],
'Generated styles use the non-default image (embed)'
);
$styles['all'],
'Generated styles use the non-default image (embed)'
);
@@
-51,7
+51,7
@@
class ResourceLoaderOOUIImageModuleTest extends ResourceLoaderTestCase {
$styles = $module->getStyles( $this->getResourceLoaderContext() );
$this->assertRegExp(
$styles = $module->getStyles( $this->getResourceLoaderContext() );
$this->assertRegExp(
- '/
magnifying-glass-mediawik
i/',
+ '/
stu-wikimediau
i/',
$styles['all'],
'Generated styles use the default image (embed)'
);
$styles['all'],
'Generated styles use the default image (embed)'
);