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
97e1b322
Commit
97e1b322
authored
May 16, 2010
by
Dave Reid
Browse files
by Dave Reid: Fixed testing error with last commit.
parent
7947df71
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlsitemap.test
View file @
97e1b322
...
...
@@ -24,8 +24,6 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
function
tearDown
()
{
// Capture any (remaining) watchdog errors.
$this
->
assertNoWatchdogErrors
();
// Reset the watchdog seen IDs for the next test run.
$this
->
getWatchdogMessages
(
array
(),
TRUE
);
parent
::
tearDown
();
}
...
...
@@ -246,7 +244,7 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
$query
->
orderBy
(
'timestamp'
);
$messages
=
$query
->
execute
()
->
fetchAllAssoc
(
'wid'
);
$seen_ids
=
array_merge
(
$
this
->
seen_ids
,
array_keys
(
$messages
));
$seen_ids
=
array_merge
(
$seen_ids
,
array_keys
(
$messages
));
return
$messages
;
}
...
...
@@ -284,6 +282,9 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
array_unshift
(
$verbose
,
'<h2>Watchdog messages</h2>'
);
$this
->
verbose
(
implode
(
"<br />"
,
$verbose
));
}
// Clear the seen watchdog messages since we've failed on any errors.
$this
->
getWatchdogMessages
(
array
(),
TRUE
);
}
}
...
...
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