function ShortcutSetsTestCase::testShortcutSetDelete

Tests deleting a shortcut set.

File

modules/shortcut/shortcut.test, line 356

Class

ShortcutSetsTestCase
Defines shortcut set test cases.

Code

function testShortcutSetDelete() {
    $new_set = $this->generateShortcutSet($this->randomName(10));
    $this->drupalPost('admin/config/user-interface/shortcut/' . $new_set->set_name . '/delete', array(), t('Delete'));
    $sets = shortcut_sets();
    $this->assertFalse(isset($sets[$new_set->set_name]), 'Successfully deleted a shortcut set.');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.