diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-03 19:16:04 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-03 19:16:04 +0000 |
commit | b5447770959e9d447e53e21e63faa98fcc1db329 (patch) | |
tree | 3f38cba8adefd9108019b010cde327e68bec0ebb /modules/profile | |
parent | b5199f2297c7cac6d03980bea6be9a02bbdf1738 (diff) | |
download | brdo-b5447770959e9d447e53e21e63faa98fcc1db329.tar.gz brdo-b5447770959e9d447e53e21e63faa98fcc1db329.tar.bz2 |
- Patch #464862 by JohnAlbin, sun, dereine | dvessel, Jacine, Zarabadoo: added drupal_css_class() to clean class names and rename form_clean_id().
Diffstat (limited to 'modules/profile')
-rw-r--r-- | modules/profile/profile.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/profile/profile.test b/modules/profile/profile.test index 92b9ee428..507d5ebd3 100644 --- a/modules/profile/profile.test +++ b/modules/profile/profile.test @@ -266,8 +266,8 @@ class ProfileTestAutocomplete extends ProfileTestCase { $this->setProfileField($field, $field['value']); // Set some html for what we want to see in the page output later. - $autocomplete_html = '<input class="autocomplete" type="hidden" id="' . form_clean_id('edit-' . $field['form_name'] . '-autocomplete') . '" value="' . url('profile/autocomplete/' . $field['fid'], array('absolute' => TRUE)) . '" disabled="disabled" />'; - $field_html = '<input type="text" maxlength="255" name="' . $field['form_name'] . '" id="' . form_clean_id('edit-' . $field['form_name']) . '" size="60" value="' . $field['value'] . '" class="form-text form-autocomplete required" />'; + $autocomplete_html = '<input class="autocomplete" type="hidden" id="' . drupal_css_id('edit-' . $field['form_name'] . '-autocomplete') . '" value="' . url('profile/autocomplete/' . $field['fid'], array('absolute' => TRUE)) . '" disabled="disabled" />'; + $field_html = '<input type="text" maxlength="255" name="' . $field['form_name'] . '" id="' . drupal_css_id('edit-' . $field['form_name']) . '" size="60" value="' . $field['value'] . '" class="form-text form-autocomplete required" />'; // Check that autocompletion html is found on the user's profile edit page. $this->drupalGet('user/' . $this->admin_user->uid . '/edit/' . $category); |