From 116f8b6428eee4c0748c36f536f7c2155c0ad905 Mon Sep 17 00:00:00 2001 From: webchick Date: Mon, 18 Jul 2011 01:04:29 -0700 Subject: Issue #898634 by catch, alex_b, chx: Fixed install_drupal(): call to menu-touching functions results in SQL syntax error. --- modules/simpletest/tests/menu.test | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/simpletest') diff --git a/modules/simpletest/tests/menu.test b/modules/simpletest/tests/menu.test index 5642fcee0..c0a79d4c2 100644 --- a/modules/simpletest/tests/menu.test +++ b/modules/simpletest/tests/menu.test @@ -394,6 +394,14 @@ class MenuRouterTestCase extends DrupalWebTestCase { $this->assertEqual($link['plid'], $plid, t('%path plid @link_plid is equal to @plid.', array('%path' => $link['router_path'], '@link_plid' => $link['plid'], '@plid' => $plid))); } + /** + * Test menu_get_item() with empty ancestors. + */ + function testMenuGetItemNoAncestors() { + variable_set('menu_masks', array()); + $this->drupalGet(''); + } + /** * Test menu_set_item(). */ -- cgit v1.2.3