Changeset 54090 for trunk/tests/phpunit/tests/comment/template.php
- Timestamp:
- 09/06/2022 10:09:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/template.php
r53863 r54090 59 59 public function test_get_comments_number_text_with_post_id() { 60 60 $post_id = self::$post_id; 61 $this->factory->comment->create_post_comments( $post_id, 6 );61 self::factory()->comment->create_post_comments( $post_id, 6 ); 62 62 63 63 $comments_number_text = get_comments_number_text( false, false, false, $post_id ); … … 85 85 $this->assertSame( __( 'No Comments' ), get_comments_number_text() ); 86 86 87 $this->factory->comment->create_post_comments( $post_id, 1 );87 self::factory()->comment->create_post_comments( $post_id, 1 ); 88 88 $this->go_to( $permalink ); 89 89 90 90 $this->assertSame( __( '1 Comment' ), get_comments_number_text() ); 91 91 92 $this->factory->comment->create_post_comments( $post_id, 1 );92 self::factory()->comment->create_post_comments( $post_id, 1 ); 93 93 $this->go_to( $permalink ); 94 94 … … 107 107 $permalink = get_permalink( $post_id ); 108 108 109 $this->factory->comment->create_post_comments( $post_id, $number );109 self::factory()->comment->create_post_comments( $post_id, $number ); 110 110 $this->go_to( $permalink ); 111 111
Note: See TracChangeset
for help on using the changeset viewer.