- Patch #260812 by boombatower: add failure message to DrupalWebTestCase->parse().
parent
9a1a6c6467
commit
3bbd9a7fa4
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue