summaryrefslogtreecommitdiff
path: root/modules/file
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-06-04 01:07:43 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-06-04 01:07:43 -0400
commitbbe4b34681f9bb52c344ac4475c1adc7b5c3f601 (patch)
treebf05ebf2c6df41b141eaf9f3f04737d894449a4c /modules/file
parent31a4cbdb0e804a66ef3f602450c872cefa949cbb (diff)
downloadbrdo-bbe4b34681f9bb52c344ac4475c1adc7b5c3f601.tar.gz
brdo-bbe4b34681f9bb52c344ac4475c1adc7b5c3f601.tar.bz2
Issue #1600892 by tim.plunkett, sun: Fixed Tests use magic numbers 1 and 2 instead of user role constants.
Diffstat (limited to 'modules/file')
-rw-r--r--modules/file/tests/file.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/file/tests/file.test b/modules/file/tests/file.test
index 7fa6d6f01..76708a3c7 100644
--- a/modules/file/tests/file.test
+++ b/modules/file/tests/file.test
@@ -551,7 +551,7 @@ class FileFieldWidgetTestCase extends FileFieldTestCase {
// Remove access comments permission from anon user.
$edit = array(
- '1[access comments]' => FALSE,
+ DRUPAL_ANONYMOUS_RID . '[access comments]' => FALSE,
);
$this->drupalPost('admin/people/permissions', $edit, t('Save permissions'));