From bbe4b34681f9bb52c344ac4475c1adc7b5c3f601 Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Mon, 4 Jun 2012 01:07:43 -0400 Subject: Issue #1600892 by tim.plunkett, sun: Fixed Tests use magic numbers 1 and 2 instead of user role constants. --- modules/php/php.test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/php/php.test') diff --git a/modules/php/php.test b/modules/php/php.test index 50fb55283..b68bd501d 100644 --- a/modules/php/php.test +++ b/modules/php/php.test @@ -33,8 +33,8 @@ class PHPTestCase extends DrupalWebTestCase { // Verify that anonymous and authenticated user roles do not have access. $this->drupalGet('admin/config/content/formats/' . $php_format_id); - $this->assertFieldByName('roles[1]', FALSE, t('Anonymous users do not have access to PHP code format.')); - $this->assertFieldByName('roles[2]', FALSE, t('Authenticated users do not have access to PHP code format.')); + $this->assertFieldByName('roles[' . DRUPAL_ANONYMOUS_RID . ']', FALSE, t('Anonymous users do not have access to PHP code format.')); + $this->assertFieldByName('roles[' . DRUPAL_AUTHENTICATED_RID . ']', FALSE, t('Authenticated users do not have access to PHP code format.')); } /** -- cgit v1.2.3