diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-30 22:40:44 -0800 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2012-01-30 22:40:44 -0800 |
commit | 060b016ae05687454f19b3c92ff02675881bca01 (patch) | |
tree | 0a482957a157a53d2d339d7c32eb4f2bcd80e6dc /modules/comment | |
parent | 07c5fbae1dd1e4e46f57e0353f471c7ad30067eb (diff) | |
download | brdo-060b016ae05687454f19b3c92ff02675881bca01.tar.gz brdo-060b016ae05687454f19b3c92ff02675881bca01.tar.bz2 |
Issue #1110650 follow-up by sun: Oops. No entity_create() in 7.x. :)
Diffstat (limited to 'modules/comment')
-rw-r--r-- | modules/comment/comment.test | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/comment/comment.test b/modules/comment/comment.test index 366429bdd..970cc83ae 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. |