diff options
author | David Rothstein <drothstein@gmail.com> | 2012-06-04 01:07:43 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-06-04 01:07:43 -0400 |
commit | bbe4b34681f9bb52c344ac4475c1adc7b5c3f601 (patch) | |
tree | bf05ebf2c6df41b141eaf9f3f04737d894449a4c /modules/block | |
parent | 31a4cbdb0e804a66ef3f602450c872cefa949cbb (diff) | |
download | brdo-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/block')
-rw-r--r-- | modules/block/block.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/block/block.test b/modules/block/block.test index cdd0d4589..8e6e47042 100644 --- a/modules/block/block.test +++ b/modules/block/block.test @@ -97,7 +97,7 @@ class BlockTestCase extends DrupalWebTestCase { // Set visibility only for authenticated users, to verify delete functionality. $edit = array(); - $edit['roles[2]'] = TRUE; + $edit['roles[' . DRUPAL_AUTHENTICATED_RID . ']'] = TRUE; $this->drupalPost('admin/structure/block/manage/block/' . $bid . '/configure', $edit, t('Save block')); // Delete the created custom block & verify that it's been deleted and no longer appearing on the page. @@ -171,7 +171,7 @@ class BlockTestCase extends DrupalWebTestCase { // authenticated users. $edit = array(); $edit['pages'] = 'user*'; - $edit['roles[2]'] = TRUE; + $edit['roles[' . DRUPAL_AUTHENTICATED_RID . ']'] = TRUE; $this->drupalPost('admin/structure/block/manage/' . $block['module'] . '/' . $block['delta'] . '/configure', $edit, t('Save block')); // Move block to the first sidebar. |