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
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment