Changeset 981 in tests
- Timestamp:
- 08/21/2012 10:17:26 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/comment.php
r980 r981 9 9 var $post_id; 10 10 var $comment_id; 11 var $comment_data;12 11 13 12 function setUp() { … … 15 14 16 15 $this->post_id = $this->factory->post->create(); 17 18 $this->comment_data = array( 19 'comment_post_ID' => $this->post_id, 20 'comment_author' => 'Test commenter', 21 'comment_author_url' => 'http://example.com/', 22 'comment_author_email' => 'example@example.com', 23 'comment_content' => rand_str( 100 ), 24 ); 25 $this->comment_id = wp_insert_comment( $this->comment_data ); 16 $this->comment_id = $this->factory->comment->create(); 26 17 } 27 18
Note: See TracChangeset
for help on using the changeset viewer.