summaryrefslogtreecommitdiff
path: root/modules/comment
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-03-01 22:07:10 -0800
committerwebchick <webchick@24967.no-reply.drupal.org>2012-03-01 22:07:10 -0800
commit810a7b9a4a1f95939fb8c48a2d8e4ecd4a3f0002 (patch)
tree5cc9ee55d3cbf01a1d48cf553cfcb572f4d06e7f /modules/comment
parent7500ee40f48666c71736fd0527aa61974a37209f (diff)
downloadbrdo-810a7b9a4a1f95939fb8c48a2d8e4ecd4a3f0002.tar.gz
brdo-810a7b9a4a1f95939fb8c48a2d8e4ecd4a3f0002.tar.bz2
Revert "Issue #1058564 by Niklas Fiekas, droplet, grendzy, dixon_, naxoc: Fixed User picture does not appear in comment preview."
This reverts commit 186437d33a903cd3ae13c7f1b2160a88941cc614.
Diffstat (limited to 'modules/comment')
-rw-r--r--modules/comment/comment.module1
-rw-r--r--modules/comment/comment.test10
2 files changed, 2 insertions, 9 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module
index aa512a700..b69b3b481 100644
--- a/modules/comment/comment.module
+++ b/modules/comment/comment.module
@@ -2064,7 +2064,6 @@ function comment_preview($comment) {
$comment->name = check_plain($account->name);
$comment->signature = $account->signature;
$comment->signature_format = $account->signature_format;
- $comment->picture = $account->picture;
}
elseif (empty($comment->name)) {
$comment->name = variable_get('anonymous', t('Anonymous'));
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 3c85b12bd..723e5c4b9 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -956,18 +956,15 @@ class CommentPreviewTest extends CommentHelperCase {
$this->setCommentSettings('comment_default_mode', COMMENT_MODE_THREADED, t('Comment paging changed.'));
$this->drupalLogout();
- // Login as web user and add a signature and a user picture.
+ // Login as web user and add a signature.
$this->drupalLogin($this->web_user);
variable_set('user_signatures', 1);
- variable_set('user_pictures', 1);
$test_signature = $this->randomName();
$edit['signature[value]'] = '<a href="http://example.com/">' . $test_signature. '</a>';
$edit['signature[format]'] = 'filtered_html';
- $image = current($this->drupalGetTestFiles('image'));
- $edit['files[picture_upload]'] = drupal_realpath($image->uri);
$this->drupalPost('user/' . $this->web_user->uid . '/edit', $edit, t('Save'));
- // As the web user, fill in the comment form and preview the comment.
+ // Fill in the comment form and preview the comment.
$edit = array();
$edit['subject'] = $this->randomName(8);
$edit['comment_body[' . $langcode . '][0][value]'] = $this->randomName(16);
@@ -984,9 +981,6 @@ class CommentPreviewTest extends CommentHelperCase {
// Check that the signature is displaying with the correct text format.
$this->assertLink($test_signature);
-
- // Check that the user picture is displayed.
- $this->assertFieldByXPath("//div[contains(@class, 'comment-preview')]//div[contains(@class, 'user-picture')]//img", NULL, 'User picture displayed.');
}
/**