Asserts local actions in the page output.
array $actions: A list of expected action link titles, keyed by the hrefs.
protected function assertLocalAction(array $actions) {
$elements = $this
->xpath('//a[contains(@class, :class)]', array(
':class' => 'button-action',
));
$index = 0;
foreach ($actions as $href => $title) {
$this
->assertEqual((string) $elements[$index], $title);
$this
->assertEqual($elements[$index]['href'], url($href));
$index++;
}
}