function ShortcutTestCase::generateShortcutLink in Drupal 7
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 - 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;
}