Commit d49309d1 authored by Dave Reid's avatar Dave Reid

by Dave Reid: Fixing tests on PHP 5.3.

parent b7a93394
......@@ -18,7 +18,7 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
// Call parent::setUp() allowing test cases to pass further modules.
$modules = func_get_args();
array_unshift($modules, 'xmlsitemap');
call_user_func_array(array($this, 'parent::setUp'), $modules);
parent::setUp($modules);
}
function tearDown() {
......
......@@ -19,7 +19,7 @@ class XMLSitemapI18nWebTestCase extends XMLSitemapTestHelper {
// Call parent::setUp() allowing test cases to pass further modules.
$modules = func_get_args();
$modules = array_merge(array('locale', 'translation', 'i18n', 'xmlsitemap_i18n'), $modules);
call_user_func_array(array($this, 'parent::setUp'), $modules);
parent::setUp($modules);
// Add predefined language and reset the locale cache.
require_once DRUPAL_ROOT . '/includes/locale.inc';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment