summaryrefslogtreecommitdiff
path: root/modules/tracker/tracker.test
diff options
context:
space:
mode:
Diffstat (limited to 'modules/tracker/tracker.test')
-rw-r--r--modules/tracker/tracker.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/tracker/tracker.test b/modules/tracker/tracker.test
index da818909f..8e5effe09 100644
--- a/modules/tracker/tracker.test
+++ b/modules/tracker/tracker.test
@@ -83,6 +83,13 @@ class TrackerTest extends DrupalWebTestCase {
$this->assertText($my_published->title[FIELD_LANGUAGE_NONE][0]['value'], t("Published nodes show up in the user's tracker listing."));
$this->assertNoText($other_published_no_comment->title[FIELD_LANGUAGE_NONE][0]['value'], t("Other user's nodes do not show up in the user's tracker listing."));
$this->assertText($other_published_my_comment->title[FIELD_LANGUAGE_NONE][0]['value'], t("Nodes that the user has commented on appear in the user's tracker listing."));
+
+ // Verify that unpublished comments are removed from the tracker.
+ $admin_user = $this->drupalCreateUser(array('administer comments', 'access user profiles'));
+ $this->drupalLogin($admin_user);
+ $this->drupalPost('comment/1/edit', array('status' => COMMENT_NOT_PUBLISHED), t('Save'));
+ $this->drupalGet('user/' . $this->user->uid . '/track');
+ $this->assertNoText($other_published_my_comment->title[FIELD_LANGUAGE_NONE][0]['value'], 'Unpublished comments are not counted on the tracker listing.');
}
/**