summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2012-01-31 06:40:44 (GMT)
committer webchick2012-01-31 06:40:44 (GMT)
commit060b016ae05687454f19b3c92ff02675881bca01 (patch)
tree0a482957a157a53d2d339d7c32eb4f2bcd80e6dc
parent07c5fbae1dd1e4e46f57e0353f471c7ad30067eb (diff)
Issue #1110650 follow-up by sun: Oops. No entity_create() in 7.x. :)
-rw-r--r--modules/comment/comment.test6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test
index 366429b..970cc83 100644
--- a/modules/comment/comment.test
+++ b/modules/comment/comment.test
@@ -483,14 +483,16 @@ class CommentInterfaceTest extends CommentHelperCase {
$node = $this->drupalCreateNode(array('type' => 'article', 'uid' => $case['node_uid']));
// Add a comment.
- $comment = entity_create('comment', array(
+ $comment = (object) array(
+ 'cid' => NULL,
'nid' => $node->nid,
+ 'pid' => 0,
'uid' => $case['comment_uid'],
'status' => $case['comment_status'],
'subject' => $this->randomName(),
'language' => LANGUAGE_NONE,
'comment_body' => array(LANGUAGE_NONE => array($this->randomName())),
- ));
+ );
comment_save($comment);
// Adjust the current/viewing user.