@@ -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.');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user