Commit 97e1b322 authored by Dave Reid's avatar Dave Reid
Browse files

by Dave Reid: Fixed testing error with last commit.

parent 7947df71
...@@ -24,8 +24,6 @@ class XMLSitemapTestHelper extends DrupalWebTestCase { ...@@ -24,8 +24,6 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
function tearDown() { function tearDown() {
// Capture any (remaining) watchdog errors. // Capture any (remaining) watchdog errors.
$this->assertNoWatchdogErrors(); $this->assertNoWatchdogErrors();
// Reset the watchdog seen IDs for the next test run.
$this->getWatchdogMessages(array(), TRUE);
parent::tearDown(); parent::tearDown();
} }
...@@ -246,7 +244,7 @@ class XMLSitemapTestHelper extends DrupalWebTestCase { ...@@ -246,7 +244,7 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
$query->orderBy('timestamp'); $query->orderBy('timestamp');
$messages = $query->execute()->fetchAllAssoc('wid'); $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; return $messages;
} }
...@@ -284,6 +282,9 @@ class XMLSitemapTestHelper extends DrupalWebTestCase { ...@@ -284,6 +282,9 @@ class XMLSitemapTestHelper extends DrupalWebTestCase {
array_unshift($verbose, '<h2>Watchdog messages</h2>'); array_unshift($verbose, '<h2>Watchdog messages</h2>');
$this->verbose(implode("<br />", $verbose)); $this->verbose(implode("<br />", $verbose));
} }
// Clear the seen watchdog messages since we've failed on any errors.
$this->getWatchdogMessages(array(), TRUE);
} }
} }
......
Supports Markdown
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