Changeset 47276 for trunk/tests/phpunit/tests/comment/template.php
- Timestamp:
- 02/11/2020 08:39:12 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/template.php
r47122 r47276 29 29 30 30 $this->assertEquals( 12, get_comments_number() ); 31 } 32 33 /** 34 * @ticket 48772 35 */ 36 function test_get_comments_number_text_with_post_id() { 37 $post_id = $this->factory->post->create(); 38 $this->factory->comment->create_post_comments( $post_id, 6 ); 39 40 $comments_number_text = get_comments_number_text( false, false, false, $post_id ); 41 42 $this->assertEquals( sprintf( _n( '%s Comment', '%s Comments', 6 ), '6' ), $comments_number_text ); 31 43 } 32 44
Note: See TracChangeset
for help on using the changeset viewer.