protected function MenuWebTestCase::getParts
Returns the breadcrumb contents of the current page in the internal browser.
2 calls to MenuWebTestCase::getParts()
- MenuWebTestCase::assertBreadcrumb in drupal-7.x/
modules/ simpletest/ tests/ menu.test - Assert that a given path shows certain breadcrumb links.
- MenuWebTestCase::assertBreadcrumb in drupal-7.x/
modules/ simpletest/ tests/ menu.test - Assert that a given path shows certain breadcrumb links.
Archivo
Class
Código
protected function getParts() {
$parts = array();
$elements = $this->xpath('//div[@class="breadcrumb"]/a');
if (!empty($elements)) {
foreach ($elements as $element) {
$parts[] = array(
'text' => (string) $element,
'href' => (string) $element['href'],
'title' => (string) $element['title'],
);
}
}
return $parts;
}