summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2013-08-05 02:26:26 -0400
committerDavid Rothstein <drothstein@gmail.com>2013-08-05 02:26:26 -0400
commited0d823ea78907e4e498dbdd7a49721b5897b499 (patch)
treee4314b44f14c6987db9b6474afe495575c1dc0e7 /modules
parent68f6a7c857d40cdf53bb344c974b1899f0fd3104 (diff)
downloadbrdo-ed0d823ea78907e4e498dbdd7a49721b5897b499.tar.gz
brdo-ed0d823ea78907e4e498dbdd7a49721b5897b499.tar.bz2
Issue #1943282 by RobLoach, eporama: Fixed User Account Links Tests assumes certain menu link IDs.
Diffstat (limited to 'modules')
-rw-r--r--modules/user/user.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/user/user.test b/modules/user/user.test
index c60f9c533..e2086d4fe 100644
--- a/modules/user/user.test
+++ b/modules/user/user.test
@@ -1565,11 +1565,13 @@ class UserAccountLinksUnitTests extends DrupalWebTestCase {
// Verify that the 'My account' link is enabled.
$this->drupalGet('admin/structure/menu/manage/user-menu');
- $this->assertFieldChecked('edit-mlid2-hidden', "The 'My account' link is enabled by default.");
+ $label = $this->xpath('//label[contains(.,:text)]/@for', array(':text' => 'Enable My account menu link'));
+ $this->assertFieldChecked((string) $label[0], "The 'My account' link is enabled by default.");
// Disable the 'My account' link.
+ $input = $this->xpath('//input[@id=:field_id]/@name', array(':field_id' => (string)$label[0]));
$edit = array(
- 'mlid:2[hidden]' => FALSE,
+ (string) $input[0] => FALSE,
);
$this->drupalPost('admin/structure/menu/manage/user-menu', $edit, t('Save configuration'));