X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fstructure%2FResourcesTest.php;h=a76288488692fdc39ad2916668b9da6a51722e65;hb=2586339be2c2be12dcf67c64d7f663d0e632c664;hp=f41ab3a11f69d3ff4717d3d933d3e306f2b5089e;hpb=f5e45bb6d75d6df49fc2285877487ad74d095bf1;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/structure/ResourcesTest.php b/tests/phpunit/structure/ResourcesTest.php index f41ab3a11f..a762884886 100644 --- 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 Timo Tijhof * @copyright © 2012, Antoine Musso * @copyright © 2012, Niklas Laxström * @copyright © 2012, Santhosh Thottingal - * @copyright © 2012, Timo Tijhof - * @coversNothing */ 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 @@ -61,7 +58,7 @@ class ResourcesTest extends MediaWikiTestCase { $illegalDeps = []; foreach ( $data['modules'] as $moduleName => $module ) { - if ( $module->isRaw() ) { + if ( $module instanceof ResourceLoaderStartUpModule ) { $illegalDeps[] = $moduleName; } }