$this->assertEqual($current_set->set_name,$this->set->set_name,'Attempting to switch to a new shortcut set without providing a set name does not succeed.');
}
/**
* Tests that shortcut_set_save() correctly updates existing links.
*/
...
...
@@ -265,6 +290,18 @@ class ShortcutSetsTestCase extends ShortcutTestCase {
$this->assertTrue($set->title==$new_title,'Shortcut set has been successfully renamed.');
}
/**
* Tests renaming a shortcut set to the same name as another set.
$this->assertRaw(t('The shortcut set %name already exists. Choose another name.',array('%name'=>$existing_title)));
$set=shortcut_set_load($set->set_name);
$this->assertNotEqual($set->title,$existing_title,t('The shortcut set %title cannot be renamed to %new-title because a shortcut set with that title already exists.',array('%title'=>$set->title,'%new-title'=>$existing_title)));