function ShortcutTestCase::generateShortcutLink
7.x shortcut.test | ShortcutTestCase::generateShortcutLink($path, $title = '') |
Creates a generic shortcut link.
2 calls to ShortcutTestCase::generateShortcutLink()
- ShortcutSetsTestCase::testShortcutSetSave in drupal-7.x/
modules/ shortcut/ shortcut.test - Tests that shortcut_set_save() correctly updates existing links.
- ShortcutTestCase::generateShortcutSet in drupal-7.x/
modules/ shortcut/ shortcut.test - Creates a generic shortcut set.
File
- drupal-7.x/
modules/ shortcut/ shortcut.test, line 67 - Tests for shortcut.module.
Class
- ShortcutTestCase
- Defines base class for shortcut test cases.
Code
function generateShortcutLink($path, $title = '') {
$link = array(
'link_path' => $path,
'link_title' => !empty($title) ? $title : $this->randomName(10),
);
return $link;
}