diff --git a/core/modules/system/lib/Drupal/system/Tests/Menu/MenuRouterRebuildTest.php b/core/modules/system/lib/Drupal/system/Tests/Menu/MenuRouterRebuildTest.php index a400770..18d05c4 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Menu/MenuRouterRebuildTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Menu/MenuRouterRebuildTest.php @@ -22,6 +22,9 @@ class MenuRouterRebuildTest extends WebTestBase { */ public static $modules = array('locale', 'menu_test'); + /** + * {@inheritdoc} + */ public static function getInfo() { return array( 'name' => 'Menu router rebuild', @@ -30,8 +33,10 @@ public static function getInfo() { ); } + /** + * {@inheritdoc} + */ function setUp() { - // Enable dummy module that implements hook_menu. parent::setUp(); $language = new Language(array('id' => 'nl')); @@ -39,7 +44,7 @@ function setUp() { } /** - * Tests the context in menu router rebuild. + * Tests configuration context when rebuilding the menu router table. */ public function testMenuRouterRebuildContext() { // Enter a language context before rebuilding the menu router tables. @@ -48,7 +53,8 @@ public function testMenuRouterRebuildContext() { menu_router_rebuild(); // Check that the language context was not used for building the menu item. - $this->assertTrue(menu_get_item('menu-test/context')['title'] == 'English', 'The free context is used when rebuilding menu router items.'); + $menu_item = menu_get_item('menu-test/context'); + $this->assertTrue($menu_item['title'] == 'English', 'Config context overrides are ignored when rebuilding menu router items.'); } }