function ShortcutLinksTestCase::testShortcutQuickLink
Tests that the "add to shortcut" link changes to "remove shortcut".
File
-
modules/
shortcut/ shortcut.test, line 154
Class
- ShortcutLinksTestCase
- Defines shortcut links test cases.
Code
function testShortcutQuickLink() {
$this->drupalGet($this->set->links[0]['link_path']);
$this->assertRaw(t('Remove from %title shortcuts', array(
'%title' => $this->set->title,
)), '"Add to shortcuts" link properly switched to "Remove from shortcuts".');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.