Changeset 25383
- Timestamp:
- 09/12/2013 04:59:29 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/meta/slashes.php
r25002 r25383 10 10 parent::setUp(); 11 11 $this->author_id = $this->factory->user->create( array( 'role' => 'editor' ) ); 12 $this->post_id = $this->factory->post->create(); 12 13 $this->old_current_user = get_current_user_id(); 13 14 wp_set_current_user( $this->author_id ); … … 174 175 */ 175 176 function test_add_comment_meta() { 176 $id = $this->factory->comment->create( );177 $id = $this->factory->comment->create( array( 'comment_post_ID' => $this->post_id ) ); 177 178 178 179 add_comment_meta( $id, 'slash_test_1', $this->slash_1 ); … … 198 199 */ 199 200 function test_update_comment_meta() { 200 $id = $this->factory->comment->create( );201 $id = $this->factory->comment->create( array( 'comment_post_ID' => $this->post_id ) ); 201 202 202 203 add_comment_meta( $id, 'slash_test_1', 'foo' );
Note: See TracChangeset
for help on using the changeset viewer.