function ShortcutLinksTestCase::testShortcutQuickLink
7.x shortcut.test | ShortcutLinksTestCase::testShortcutQuickLink() |
Tests that the "add to shortcut" link changes to "remove shortcut".
File
- drupal-7.x/
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".');
}