From c556fa3280309d3622a67a258fd50ddccfd486e2 Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Fri, 12 Oct 2012 17:27:08 -0700 Subject: [PATCH] Issue #1811068 by xjm: Fixed MenuNodeTest improperly uses the node front page when checking for menu links. --- core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php b/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php index ba9841b54b29..76574675bdcb 100644 --- a/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php +++ b/core/modules/menu/lib/Drupal/menu/Tests/MenuNodeTest.php @@ -71,7 +71,7 @@ function testMenuNodeFormWidget() { $this->drupalPost('node/add/page', $edit, t('Save')); $node = $this->drupalGetNodeByTitle($node_title); // Assert that there is no link for the node. - $this->drupalGet(''); + $this->drupalGet('user'); $this->assertNoLink($node_title); // Edit the node, enable the menu link setting, but skip the link title. @@ -80,7 +80,7 @@ function testMenuNodeFormWidget() { ); $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); // Assert that there is no link for the node. - $this->drupalGet(''); + $this->drupalGet('user'); $this->assertNoLink($node_title); // Edit the node and create a menu link. @@ -91,7 +91,7 @@ function testMenuNodeFormWidget() { ); $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); // Assert that the link exists. - $this->drupalGet(''); + $this->drupalGet('user'); $this->assertLink($node_title); $this->drupalGet('node/' . $node->nid . '/edit'); @@ -103,7 +103,7 @@ function testMenuNodeFormWidget() { ); $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); // Assert that there is no link for the node. - $this->drupalGet(''); + $this->drupalGet('user'); $this->assertNoLink($node_title); // Add a menu link to the Management menu. -- GitLab