summaryrefslogtreecommitdiff
path: root/modules/shortcut/shortcut.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/shortcut/shortcut.test')
-rw-r--r--modules/shortcut/shortcut.test4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/shortcut/shortcut.test b/modules/shortcut/shortcut.test
index 322c63f11..801d58550 100644
--- a/modules/shortcut/shortcut.test
+++ b/modules/shortcut/shortcut.test
@@ -124,6 +124,7 @@ class ShortcutLinksTestCase extends ShortcutTestCase {
// Create some paths to test.
$test_cases = array(
+ array('path' => ''),
array('path' => 'admin'),
array('path' => 'admin/config/system/site-information'),
array('path' => "node/{$this->node->nid}/edit"),
@@ -141,7 +142,8 @@ class ShortcutLinksTestCase extends ShortcutTestCase {
$this->assertResponse(200);
$saved_set = shortcut_set_load($set->set_name);
$paths = $this->getShortcutInformation($saved_set, 'link_path');
- $this->assertTrue(in_array(drupal_get_normal_path($test['path']), $paths), 'Shortcut created: '. $test['path']);
+ $test_path = empty($test['path']) ? '<front>' : $test['path'];
+ $this->assertTrue(in_array(drupal_get_normal_path($test_path), $paths), 'Shortcut created: '. $test['path']);
$this->assertLink($title, 0, 'Shortcut link found on the page.');
}
}