diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-29 06:38:52 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-11-29 06:38:52 +0000 |
commit | 8172877a62e7df25b0febc4b46dfa148af73f7db (patch) | |
tree | 26480ed6a0cf7a03a9ad065b2c91ae0901a7c758 /modules/user | |
parent | c9d78b60d4a584a95031cb29bef16de9867c916d (diff) | |
download | brdo-8172877a62e7df25b0febc4b46dfa148af73f7db.tar.gz brdo-8172877a62e7df25b0febc4b46dfa148af73f7db.tar.bz2 |
#947844 by sun: Clean up filter-related tests that load text formats by their human-readable name.
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.test b/modules/user/user.test index d576a75b5..a15e22c0f 100644 --- a/modules/user/user.test +++ b/modules/user/user.test @@ -1549,8 +1549,8 @@ class UserSignatureTestCase extends DrupalWebTestCase { variable_set('user_signatures', 1); // Prefetch text formats. - $this->full_html_format = db_query_range('SELECT * FROM {filter_format} WHERE name = :name', 0, 1, array(':name' => 'Full HTML'))->fetchObject(); - $this->plain_text_format = db_query_range('SELECT * FROM {filter_format} WHERE name = :name', 0, 1, array(':name' => 'Plain text'))->fetchObject(); + $this->full_html_format = filter_format_load('full_html'); + $this->plain_text_format = filter_format_load('plain_text'); // Create regular and administrative users. $this->web_user = $this->drupalCreateUser(array()); |