Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
xmlsitemap
Commits
d49309d1
Commit
d49309d1
authored
Jun 30, 2010
by
Dave Reid
Browse files
by Dave Reid: Fixing tests on PHP 5.3.
parent
b7a93394
Changes
2
Hide whitespace changes
Inline
Side-by-side
xmlsitemap.test
View file @
d49309d1
...
...
@@ -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
()
{
...
...
xmlsitemap_i18n/xmlsitemap_i18n.test
View file @
d49309d1
...
...
@@ -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'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment