function ShortcutLinksTestCase::testShortcutQuickLink in Drupal 7
Tests that the "add to shortcut" link changes to "remove shortcut".
File
- modules/
shortcut/ shortcut.test, line 154 - Tests for shortcut.module.
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".');
}