? 371235-patched-benchmarks.txt
? 371235-unpatched-benchmarks.txt
? includes/database/install.inc
? sites/all/modules/cvs
Index: includes/form.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/form.inc,v
retrieving revision 1.320
diff -u -p -r1.320 form.inc
--- includes/form.inc 3 Feb 2009 18:55:29 -0000 1.320
+++ includes/form.inc 14 Feb 2009 23:36:29 -0000
@@ -1972,7 +1972,7 @@ function theme_checkboxes($element) {
$class .= ' ' . $element['#attributes']['class'];
}
$element['#children'] = '
' . (!empty($element['#children']) ? $element['#children'] : '') . '
';
-
+
return $element['#children'];
}
Index: modules/comment/comment.test
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.test,v
retrieving revision 1.25
diff -u -p -r1.25 comment.test
--- modules/comment/comment.test 7 Feb 2009 20:10:40 -0000 1.25
+++ modules/comment/comment.test 14 Feb 2009 23:36:38 -0000
@@ -9,12 +9,9 @@ class CommentHelperCase extends DrupalWe
function setUp() {
parent::setUp('comment');
// Create users.
- $this->admin_user = $this->drupalCreateUser(array('administer content types', 'administer comments', 'administer permissions', 'administer blocks'));
+ $this->admin_user = $this->drupalCreateUser(array('administer content types', 'administer comments', 'administer blocks'));
$this->web_user = $this->drupalCreateUser(array('access comments', 'post comments', 'create article content'));
-
- $this->drupalLogin($this->web_user);
- $this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1));
- $this->drupalLogout();
+ $this->node = $this->drupalCreateNode(array('type' => 'article', 'promote' => 1, 'uid' => $this->web_user->uid));
}
/**
@@ -162,23 +159,6 @@ class CommentHelperCase extends DrupalWe
}
/**
- * Set anonymous comment setting.
- *
- * @param boolean $enabled
- * Allow anonymous commenting.
- * @param boolean $without_approval
- * Allow anonymous commenting without approval.
- */
- function setAnonymousUserComment($enabled, $without_approval) {
- $edit = array();
- $edit['1[access comments]'] = $enabled;
- $edit['1[post comments]'] = $enabled;
- $edit['1[post comments without approval]'] = $without_approval;
- $this->drupalPost('admin/user/permissions', $edit, t('Save permissions'));
- $this->assertText(t('The changes have been saved.'), t('Anonymous user comments ' . ($enabled ? 'enabled' : 'disabled') . '.'));
- }
-
- /**
* Check for contact info.
*
* @return boolean Contact info is available.
@@ -373,7 +353,7 @@ class CommentAnonymous extends CommentHe
function testAnonymous() {
$this->drupalLogin($this->admin_user);
// Enabled anonymous user comments.
- $this->setAnonymousUserComment(TRUE, TRUE);
+ $this->drupalSetPermissions('anonymous user', array('access content', 'access comments', 'post comments', 'post comments without approval'));
$this->setCommentAnonymous('0'); // Ensure that doesn't require contact info.
$this->drupalLogout();
@@ -433,15 +413,14 @@ class CommentAnonymous extends CommentHe
$this->drupalGet('admin/content/comment');
$this->assertNoRaw('comments[' . $anonymous_comment3->id . ']', t('Comment was deleted.'));
+ $this->drupalLogout();
- // Reset.
- $this->drupalLogin($this->admin_user);
- $this->setAnonymousUserComment(FALSE, FALSE);
+ // Reset permissions.
+ $this->drupalSetPermissions('anonymous user', array('access content'));
// Attempt to view comments while disallowed.
// NOTE: if authenticated user has permission to post comments, then a
// "Login or register to post comments" type link may be shown.
- $this->drupalLogout();
$this->drupalGet('node/' . $this->node->nid);
$this->assertNoRaw('