public function ServicesWebTestCase::getCommentValues in Services 7.3
Default values of comment for creating.
10 calls to ServicesWebTestCase::getCommentValues()
- ServicesResourceCommentTests::testCommentCountAll in tests/
functional/ ServicesResourceCommentTests.test - Test countAll method.
- ServicesResourceCommentTests::testCommentCountNew in tests/
functional/ ServicesResourceCommentTests.test - Test countNew method.
- ServicesResourceCommentTests::testCommentCreate in tests/
functional/ ServicesResourceCommentTests.test - Test create comment.
- ServicesResourceCommentTests::testCommentCreateLegacy in tests/
functional/ ServicesResourceCommentTests.test - Test create comment (Legacy).
- ServicesResourceCommentTests::testCommentDelete in tests/
functional/ ServicesResourceCommentTests.test - Test delete method.
File
- tests/
services.test, line 881
Class
Code
public function getCommentValues($nid) {
return array(
'subject' => $this
->randomString(),
'comment_body' => array(
LANGUAGE_NONE => array(
array(
'value' => $this
->randomString(),
'format' => filter_default_format(),
),
),
),
'name' => $this->privileged_user->name,
'language' => LANGUAGE_NONE,
'nid' => $nid,
'uid' => $this->privileged_user->uid,
'cid' => NULL,
'pid' => 0,
);
}