diff --git a/modules/shortcut/shortcut.test b/modules/shortcut/shortcut.test index c865a81..30c0830 100644 --- a/modules/shortcut/shortcut.test +++ b/modules/shortcut/shortcut.test @@ -142,12 +142,12 @@ class ShortcutLinksTestCase extends ShortcutTestCase { $link_title = $set_titles[$enabled_shortcuts - 1]; // Check if message for maximum number of visible shortcuts is displayed // when necessary. - //$links = array_reverse($set->links); $this->drupalGet('admin/config/user-interface/shortcut/' . $set->set_name . '/add-link'); $max_visible_shortcuts_message = t('Only @limit links can be enabled in a shortcut set. Adding a shortcut will disable the last shortcut: "@last_shortcut".', array('@limit' => $shortcut_limit, '@last_shortcut' => $link_title)); if($enabled_shortcuts >= $shortcut_limit) { $this->assertText($max_visible_shortcuts_message, 'The maximum number of visible shortcuts has been reached message.'); - } else { + } + else { $this->assertNoText($max_visible_shortcuts_message, 'The maximum number of visible shortcuts has not yet been reached. Do not show message.'); } @@ -161,7 +161,8 @@ class ShortcutLinksTestCase extends ShortcutTestCase { $disabled_shortcut_message = t('Only @limit links can be enabled in a shortcut set. The previous last shortcut "@last_shortcut" was disabled.', array('@limit' => $shortcut_limit, '@last_shortcut' => $link_title)); if($enabled_shortcuts >= $shortcut_limit) { $this->assertText($disabled_shortcut_message, 'More than the maximum number of visible shortcuts has been added.'); - } else { + } + else { $this->assertNoText($disabled_shortcut_message, 'Up to the maximum number of visible shortcuts has been added. Do not show message.'); } $saved_set = shortcut_set_load($set->set_name);