Tests creating a new shortcut set with a defined set name.
function testShortcutSetCreateWithSetName() {
$random_name = $this
->randomName();
$new_set = $this
->generateShortcutSet($random_name, $random_name, TRUE);
$sets = entity_load_multiple('shortcut');
$this
->assertTrue(isset($sets[$random_name]), 'Successfully created a shortcut set with a defined set name.');
$this
->drupalGet('user/' . $this->admin_user->uid . '/shortcuts');
$this
->assertText($new_set
->label(), 'Generated shortcut set was listed as a choice on the user account page.');
}