summaryrefslogtreecommitdiff
path: root/modules/update/tests/update_test.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-13 08:02:49 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-10-13 08:02:49 +0000
commitbc9a742f68a02e69a51aa5aa0b6544294697f433 (patch)
treefe706bbc17ad1ee431cc20775dd10758605b2510 /modules/update/tests/update_test.module
parentb4d3bdbf38001197243d4dc7f4046cf3d98dab60 (diff)
downloadbrdo-bc9a742f68a02e69a51aa5aa0b6544294697f433.tar.gz
brdo-bc9a742f68a02e69a51aa5aa0b6544294697f433.tar.bz2
#597390 by Dave Reid and dww: Fixed PHP notices on non-existant projects when parsing update XML.
Diffstat (limited to 'modules/update/tests/update_test.module')
-rw-r--r--modules/update/tests/update_test.module7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/update/tests/update_test.module b/modules/update/tests/update_test.module
index f95a5cb9a..4ae4bccf9 100644
--- a/modules/update/tests/update_test.module
+++ b/modules/update/tests/update_test.module
@@ -62,7 +62,12 @@ function update_test_mock_page($project_name) {
$availability_scenario = $xml_map['#all'];
}
else {
- return FALSE;
+ // The test didn't specify (for example, the webroot has other modules and
+ // themes installed but they're disabled by the version of the site
+ // running the test. So, we default to a file we know won't exist, so at
+ // least we'll get an empty page from readfile instead of a bunch of
+ // Drupal page output.
+ $availability_scenario = '#broken#';
}
$path = drupal_get_path('module', 'update_test');