? .DS_Store
? patch
? tests/.DS_Store
Index: resources/comment_resource.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/resources/comment_resource.inc,v
retrieving revision 1.1.2.5
diff -r1.1.2.5 comment_resource.inc
2c2
< // $Id: comment_resource.inc,v 1.1.2.5 2011/01/30 18:55:10 ocyrus Exp $
---
> // $Id: comment_resource.inc,v 1.1.2.4 2011/01/21 02:00:50 ocyrus Exp $
196c196
<   return (object)array(
---
>   return array(
Index: tests/functional/ServicesResourceCommentTests.test
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/tests/functional/Attic/ServicesResourceCommentTests.test,v
retrieving revision 1.1.2.1
diff -r1.1.2.1 ServicesResourceCommentTests.test
71,72c71
< 
<     $cid = $response['body']->cid;
---
>     $cid = $response['body']['cid'];
79a79,97
>   /**
>    * Test create method.
>    */
>   function testCommentCreateWithoutAdmin() {
>     $path = $this->endpoint->path;
>     $this->drupalLogin($this->drupalCreateUser(array('post comments')));
>     // Create node with commenting.
>     $settings = array('comment' => 1);
>     $node = $this->drupalCreateNode($settings);
> 
>     $comment = array(
>       'uid' => $this->privileged_user->uid,
>       'nid' => $node->nid,
>       'subject' => $this->randomString(),
>       'comment' => $this->randomString(),
>     );
>     $response = $this->servicesPost($path . '/comment', array('comment' => $comment));
>     $cid = $response['body']['cid'];
>     $comment['cid'] = $cid;
80a99,103
>     $comment_load = (array)_comment_load($cid);
>     $comment_intersect = array_intersect_assoc($comment_load, $comment);
> 
>     $this->assertEqual($comment, $comment_intersect, t('Comment created properly.'), 'CommentResource: Create');
>   }
