Changeset 32364 for trunk/tests/phpunit/tests/comment.php
- Timestamp:
- 05/06/2015 02:59:50 AM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/comment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment.php
r32306 r32364 122 122 } 123 123 124 $post_id = $this->factory->post->create(); 124 $u = $this->factory->user->create(); 125 $post_id = $this->factory->post->create( array( 'post_author' => $u ) ); 125 126 126 127 $data = array( … … 137 138 $id = wp_new_comment( $data ); 138 139 139 $this->assertFalse( $id ); 140 $comment = get_comment( $id ); 141 142 $this->assertEquals( strlen( $comment->comment_content ), 65535 ); 140 143 141 144 // Cleanup.
Note: See TracChangeset
for help on using the changeset viewer.