Skip to content
Snippets Groups Projects
Commit c556fa32 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #1811068 by xjm: Fixed MenuNodeTest improperly uses the node front page...

Issue #1811068 by xjm: Fixed MenuNodeTest improperly uses the node front page when checking for menu links.
parent 07ab1e8f
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -71,7 +71,7 @@ function testMenuNodeFormWidget() { ...@@ -71,7 +71,7 @@ function testMenuNodeFormWidget() {
$this->drupalPost('node/add/page', $edit, t('Save')); $this->drupalPost('node/add/page', $edit, t('Save'));
$node = $this->drupalGetNodeByTitle($node_title); $node = $this->drupalGetNodeByTitle($node_title);
// Assert that there is no link for the node. // Assert that there is no link for the node.
$this->drupalGet(''); $this->drupalGet('user');
$this->assertNoLink($node_title); $this->assertNoLink($node_title);
// Edit the node, enable the menu link setting, but skip the link title. // Edit the node, enable the menu link setting, but skip the link title.
...@@ -80,7 +80,7 @@ function testMenuNodeFormWidget() { ...@@ -80,7 +80,7 @@ function testMenuNodeFormWidget() {
); );
$this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
// Assert that there is no link for the node. // Assert that there is no link for the node.
$this->drupalGet(''); $this->drupalGet('user');
$this->assertNoLink($node_title); $this->assertNoLink($node_title);
// Edit the node and create a menu link. // Edit the node and create a menu link.
...@@ -91,7 +91,7 @@ function testMenuNodeFormWidget() { ...@@ -91,7 +91,7 @@ function testMenuNodeFormWidget() {
); );
$this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
// Assert that the link exists. // Assert that the link exists.
$this->drupalGet(''); $this->drupalGet('user');
$this->assertLink($node_title); $this->assertLink($node_title);
$this->drupalGet('node/' . $node->nid . '/edit'); $this->drupalGet('node/' . $node->nid . '/edit');
...@@ -103,7 +103,7 @@ function testMenuNodeFormWidget() { ...@@ -103,7 +103,7 @@ function testMenuNodeFormWidget() {
); );
$this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save'));
// Assert that there is no link for the node. // Assert that there is no link for the node.
$this->drupalGet(''); $this->drupalGet('user');
$this->assertNoLink($node_title); $this->assertNoLink($node_title);
// Add a menu link to the Management menu. // Add a menu link to the Management menu.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment