diff --git a/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php b/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php index 9d4b8d4..d2d023b 100644 --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php @@ -54,8 +54,7 @@ function testMenuNodeFormWidget() { 'menu_options[tools]' => 1, ); $this->drupalPost('admin/structure/types/manage/page', $edit, t('Save content type')); - // Change default parent item to Tools menu, so we can assert more - // easily. + // Change default parent item to Tools menu, so we can assert more easily. $edit = array( 'menu_parent' => 'tools:0', ); @@ -114,7 +113,8 @@ function testMenuNodeFormWidget() { ); menu_link_save($item); - // Assert that disabled Administration menu is not shown on the node/$nid/edit page. + // Assert that disabled Administration menu is not shown on the + // node/$nid/edit page. $this->drupalGet('node/' . $node->nid . '/edit'); $this->assertText('Provide a menu link', 'Link in not allowed menu not shown in node edit form'); // Assert that the link is still in the Administration menu after save. diff --git a/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php b/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php index 2067e7d..e0b9b92 100644 --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuTest.php @@ -90,8 +90,7 @@ function testMenu() { } /** - * Test standard menu functionality using Tools menu. - * + * Tests standard menu functionality using the Tools menu. */ function doStandardMenuTests() { $this->doMenuTests(); @@ -99,8 +98,7 @@ function doStandardMenuTests() { } /** - * Test custom menu functionality using Tools menu. - * + * Tests custom menu functionality using the Tools menu. */ function doCustomMenuTests() { $this->menu = $this->addCustomMenu(); @@ -207,8 +205,7 @@ function deleteCustomMenu($menu) { } /** - * Test menu functionality using Tools menu. - * + * Tests menu functionality using the Tools menu. */ function doMenuTests($menu_name = 'tools') { // Add nodes to use as links for menu links. diff --git a/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php b/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php index 661a712..b9df6a3 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Menu/BreadcrumbTest.php @@ -36,9 +36,9 @@ function setUp() { $this->admin_user = $this->drupalCreateUser($perms); $this->drupalLogin($this->admin_user); - // This test puts menu links in the Tools menu and then tests for - // their presence on the page, so we need to ensure that the Tools - // block will be displayed in all active themes. + // This test puts menu links in the Tools menu and then tests for their + // presence on the page, so we need to ensure that the Tools block will be + // displayed in all active themes. db_update('block') ->fields(array( // Use a region that is valid for all themes. diff --git a/core/modules/system/lib/Drupal/system/Tests/Menu/TrailTest.php b/core/modules/system/lib/Drupal/system/Tests/Menu/TrailTest.php index 44ba998..66c6ff8 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Menu/TrailTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Menu/TrailTest.php @@ -33,9 +33,9 @@ function setUp() { $this->admin_user = $this->drupalCreateUser(array('administer site configuration', 'access administration pages')); $this->drupalLogin($this->admin_user); - // This test puts menu links in the Tools menu and then tests for - // their presence on the page, so we need to ensure that the Tools - // block will be displayed in all active themes. + // This test puts menu links in the Tools menu and then tests for their + // presence on the page, so we need to ensure that the Tools block will be + // displayed in all active themes. db_update('block') ->fields(array( // Use a region that is valid for all themes. @@ -91,8 +91,8 @@ function testMenuTreeSetPath() { variable_del('menu_test_menu_tree_set_path'); $this->assertBreadcrumb('menu-test/menu-trail', $breadcrumb, t('Menu trail - Case 1'), $tree); - // Override the active trail for the Administration tree; it should not affect - // the Tools tree. + // Override the active trail for the Administration tree; it should not + // affect the Tools tree. variable_set('menu_test_menu_tree_set_path', $test_menu_path); $this->assertBreadcrumb('menu-test/menu-trail', $breadcrumb, t('Menu trail - Case 1'), $tree); @@ -117,8 +117,8 @@ function testMenuTreeSetPath() { variable_del('menu_test_menu_tree_set_path'); $this->assertBreadcrumb('admin/config/development/menu-trail', $breadcrumb, t('Menu trail - Case 2'), $tree); - // Override the active trail for the Administration tree; it should affect the - // breadcrumbs and Administration tree. + // Override the active trail for the Administration tree; it should affect + // the breadcrumbs and Administration tree. variable_set('menu_test_menu_tree_set_path', $test_menu_path); $this->assertBreadcrumb('admin/config/development/menu-trail', $override_breadcrumb, t('Menu trail - Case 2'), $override_tree); }