Test menu_get_item() with empty ancestors.
File
- drupal/core/modules/system/lib/Drupal/system/Tests/Menu/MenuRouterTest.php, line 463
- Definition of Drupal\system\Tests\Menu\MenuRouterTest.
Class
- MenuRouterTest
- Tests menu router and hook_menu() functionality.
Namespace
Drupal\system\Tests\Menu
Code
function testMenuGetItemNoAncestors() {
\Drupal::state()
->set('menu.masks', array());
$this
->drupalGet('');
}