diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index e787d25..bbfadb9 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -1942,7 +1942,8 @@ class CommentActionsTestCase extends CommentHelperCase {
    */
   function testCommentPublishUnpublishActions() {
     $this->drupalLogin($this->web_user);
-    $comment_text = $this->randomName();
+    $keyword = 'keyword';
+    $comment_text = $keyword . ' ' . $this->randomName();
     $subject = $this->randomName();
     $comment = $this->postComment($this->node, $comment_text, $subject);
     $comment = comment_load($comment->id);
@@ -1969,6 +1970,13 @@ class CommentActionsTestCase extends CommentHelperCase {
     $this->assertEqual(comment_load($comment->cid)->status, COMMENT_PUBLISHED, t('Comment was published'));
     $this->assertWatchdogMessage('Published comment %subject.', array('%subject' => $subject), t('Found watchdog message'));
     $this->clearWatchdog();
+
+    // Unpublish a comment by keyword.
+    $context = array('keywords' => array($keyword));
+    comment_unpublish_by_keyword_action($comment, $context);
+    $this->assertEqual($comment->status, COMMENT_NOT_PUBLISHED, t('Comment was unpublished'));
+    $this->assertWatchdogMessage('Unpublished comment %subject.', array('%subject' => $subject), t('Found watchdog message'));
+    $this->clearWatchdog();
   }
 
   /**
