function ShortcutTestCase::generateShortcutLink
Creates a generic shortcut link.
2 calls to ShortcutTestCase::generateShortcutLink()
- ShortcutSetsTestCase::testShortcutSetSave in modules/
shortcut/ shortcut.test - Tests that shortcut_set_save() correctly updates existing links.
- ShortcutTestCase::generateShortcutSet in modules/
shortcut/ shortcut.test - Creates a generic shortcut set.
File
-
modules/
shortcut/ shortcut.test, line 67
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.