Changeset 35242 for trunk/tests/phpunit/tests/comment/template.php
- Timestamp:
- 10/17/2015 06:02:16 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/template.php
r35225 r35242 6 6 7 7 function test_get_comments_number() { 8 $post_id = self:: $factory->post->create();8 $post_id = self::factory()->post->create(); 9 9 10 10 $this->assertEquals( 0, get_comments_number( 0 ) ); … … 12 12 $this->assertEquals( 0, get_comments_number( get_post( $post_id ) ) ); 13 13 14 self:: $factory->comment->create_post_comments( $post_id, 12 );14 self::factory()->comment->create_post_comments( $post_id, 12 ); 15 15 16 16 $this->assertEquals( 12, get_comments_number( $post_id ) ); … … 19 19 20 20 function test_get_comments_number_without_arg() { 21 $post_id = self:: $factory->post->create();21 $post_id = self::factory()->post->create(); 22 22 $permalink = get_permalink( $post_id ); 23 23 $this->go_to( $permalink ); … … 25 25 $this->assertEquals( 0, get_comments_number() ); 26 26 27 self:: $factory->comment->create_post_comments( $post_id, 12 );27 self::factory()->comment->create_post_comments( $post_id, 12 ); 28 28 $this->go_to( $permalink ); 29 29
Note: See TracChangeset
for help on using the changeset viewer.