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
Merge "Change Special:Mute link on email footer to be in plain text"
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
structure
/
ResourcesTest.php
diff --git
a/tests/phpunit/structure/ResourcesTest.php
b/tests/phpunit/structure/ResourcesTest.php
index
f41ab3a
..
a762884
100644
(file)
--- a/
tests/phpunit/structure/ResourcesTest.php
+++ b/
tests/phpunit/structure/ResourcesTest.php
@@
-9,12
+9,9
@@
use Wikimedia\TestingAccessWrapper;
* @author Antoine Musso
* @author Niklas Laxström
* @author Santhosh Thottingal
* @author Antoine Musso
* @author Niklas Laxström
* @author Santhosh Thottingal
- * @author Timo Tijhof
* @copyright © 2012, Antoine Musso
* @copyright © 2012, Niklas Laxström
* @copyright © 2012, Santhosh Thottingal
* @copyright © 2012, Antoine Musso
* @copyright © 2012, Niklas Laxström
* @copyright © 2012, Santhosh Thottingal
- * @copyright © 2012, Timo Tijhof
- * @coversNothing
*/
class ResourcesTest extends MediaWikiTestCase {
*/
class ResourcesTest extends MediaWikiTestCase {
@@
-48,9
+45,9
@@
class ResourcesTest extends MediaWikiTestCase {
}
/**
}
/**
- * Verify that nothing
explicitly depends on raw modules (such as "query")
.
+ * Verify that nothing
depends on "startup"
.
*
*
- * Depending on
them is unsupported as they are not registered client-side by the startup module
.
+ * Depending on
it is unsupported as it cannot be loaded by the client
.
*
* @todo Modules can dynamically choose dependencies based on context. This method does not
* test such dependencies. The same goes for testMissingDependencies() and
*
* @todo Modules can dynamically choose dependencies based on context. This method does not
* test such dependencies. The same goes for testMissingDependencies() and
@@
-61,7
+58,7
@@
class ResourcesTest extends MediaWikiTestCase {
$illegalDeps = [];
foreach ( $data['modules'] as $moduleName => $module ) {
$illegalDeps = [];
foreach ( $data['modules'] as $moduleName => $module ) {
- if ( $module
->isRaw()
) {
+ if ( $module
instanceof ResourceLoaderStartUpModule
) {
$illegalDeps[] = $moduleName;
}
}
$illegalDeps[] = $moduleName;
}
}