Commit 2d793387 authored by Dries's avatar Dries

- Patch #487868 by David_Rothstein: fixed some test issues.

parent e0b8aeba
......@@ -1619,7 +1619,7 @@ protected function getAllOptions(SimpleXMLElement $element) {
protected function assertLink($label, $index = 0, $message = '', $group = 'Other') {
$links = $this->xpath('//a[text()="' . $label . '"]');
$message = ($message ? $message : t('Link with label "!label" found.', array('!label' => $label)));
$this->assert(isset($links[$index]), $message, $group);
return $this->assert(isset($links[$index]), $message, $group);
}
/**
......@@ -1637,7 +1637,7 @@ protected function assertLink($label, $index = 0, $message = '', $group = 'Other
protected function assertNoLink($label, $message = '', $group = 'Other') {
$links = $this->xpath('//a[text()="' . $label . '"]');
$message = ($message ? $message : t('Link with label "!label" not found.', array('!label' => $label)));
$this->assert(empty($links), $message, $group);
return $this->assert(empty($links), $message, $group);
}
/**
......
Markdown is supported
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