summaryrefslogtreecommitdiff
path: root/tests/phpunit/structure/ResourcesTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/structure/ResourcesTest.php')
-rw-r--r--tests/phpunit/structure/ResourcesTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/phpunit/structure/ResourcesTest.php b/tests/phpunit/structure/ResourcesTest.php
index 2396ea29..d2b699d9 100644
--- a/tests/phpunit/structure/ResourcesTest.php
+++ b/tests/phpunit/structure/ResourcesTest.php
@@ -12,7 +12,6 @@
* @copyright © 2012, Santhosh Thottingal
* @copyright © 2012, Timo Tijhof
*
- * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or later
*/
class ResourcesTest extends MediaWikiTestCase {
@@ -91,6 +90,10 @@ class ResourcesTest extends MediaWikiTestCase {
foreach ( $data['modules'] as $moduleName => $module ) {
$moduleTargets = $module->getTargets();
foreach ( $module->getDependencies() as $dep ) {
+ if ( !isset( $data['modules'][$dep] ) ) {
+ // Missing dependencies reported by testMissingDependencies
+ continue;
+ }
$targets = $data['modules'][$dep]->getTargets();
foreach ( $moduleTargets as $moduleTarget ) {
$this->assertContains(