Changeset 42343 for trunk/tests/phpunit/tests/comment/getCommentExcerpt.php
- Timestamp:
- 11/30/2017 11:09:33 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getCommentExcerpt.php
r35242 r42343 15 15 16 16 public function test_get_comment_excerpt() { 17 $comment_id = self::factory()->comment->create( array( 18 'comment_content' => self::$bacon_comment 19 ) ); 17 $comment_id = self::factory()->comment->create( 18 array( 19 'comment_content' => self::$bacon_comment, 20 ) 21 ); 20 22 21 23 $excerpt = get_comment_excerpt( $comment_id ); … … 25 27 26 28 public function test_get_comment_excerpt_filtered() { 27 $comment_id = self::factory()->comment->create( array( 28 'comment_content' => self::$bacon_comment 29 ) ); 29 $comment_id = self::factory()->comment->create( 30 array( 31 'comment_content' => self::$bacon_comment, 32 ) 33 ); 30 34 31 35 add_filter( 'comment_excerpt_length', array( $this, '_filter_comment_excerpt_length' ) );
Note: See TracChangeset
for help on using the changeset viewer.