From 833ab255e92b5a8a1e9294282a4851c58d26a25f Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Wed, 17 Feb 2010 05:46:16 +0000 Subject: =?UTF-8?q?#605926=20by=20jim0203,=20sun,=20jhodgdon,=20dman,=20ei?= =?UTF-8?q?leenmcnaughton,=20G=C3=A1bor=20Hojtsy:=20Fixed=20Menu=20link=20?= =?UTF-8?q?weight=20changes=20when=20editing=20a=20node.=20(with=20tests)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/menu/menu.test | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/menu/menu.test b/modules/menu/menu.test index f00238e9b..ef7edf43a 100644 --- a/modules/menu/menu.test +++ b/modules/menu/menu.test @@ -606,12 +606,16 @@ class MenuNodeTestCase extends DrupalWebTestCase { $edit = array( 'menu[enabled]' => 1, 'menu[link_title]' => $node_title, + 'menu[weight]' => 17, ); $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); // Assert that the link exists. $this->drupalGet(''); $this->assertLink($node_title); + $this->drupalGet('node/' . $node->nid . '/edit'); + $this->assertOptionSelected('edit-menu-weight', 17, t('Menu weight correct in edit form')); + // Edit the node and remove the menu link. $edit = array( 'menu[enabled]' => FALSE, @@ -622,4 +626,3 @@ class MenuNodeTestCase extends DrupalWebTestCase { $this->assertNoLink($node_title); } } - -- cgit v1.2.3