- Patch #260812 by boombatower: add failure message to DrupalWebTestCase->parse().

merge-requests/26/head
Dries Buytaert 2008-05-22 19:32:52 +00:00
parent 9a1a6c6467
commit 3bbd9a7fa4
1 changed files with 4 additions and 0 deletions

View File

@ -9,6 +9,7 @@ class DrupalWebTestCase extends UnitTestCase {
protected $_content;
protected $plain_text;
protected $ch;
protected $elements;
protected $_modules = array();
// We do not reuse the cookies in further runs, so we do not need a file
// but we still need cookie handling, so we set the jar to NULL
@ -490,6 +491,9 @@ class DrupalWebTestCase extends UnitTestCase {
$this->elements = simplexml_import_dom($htmlDom);
}
}
if (!$this->elements) {
$this->fail(t('Parsed page successfully.'), t('Browser'));
}
return $this->elements;
}