Changeset 35225 for trunk/tests/phpunit/tests/comment/wpCountComments.php
- Timestamp:
- 10/16/2015 09:04:12 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/wpCountComments.php
r34161 r35225 16 16 17 17 public function test_wp_count_comments_approved() { 18 $this->factory->comment->create( array(18 self::$factory->comment->create( array( 19 19 'comment_approved' => 1 20 20 ) ); … … 32 32 33 33 public function test_wp_count_comments_awaiting() { 34 $this->factory->comment->create( array(34 self::$factory->comment->create( array( 35 35 'comment_approved' => 0 36 36 ) ); … … 48 48 49 49 public function test_wp_count_comments_spam() { 50 $this->factory->comment->create( array(50 self::$factory->comment->create( array( 51 51 'comment_approved' => 'spam' 52 52 ) ); … … 64 64 65 65 public function test_wp_count_comments_trash() { 66 $this->factory->comment->create( array(66 self::$factory->comment->create( array( 67 67 'comment_approved' => 'trash' 68 68 ) ); … … 80 80 81 81 public function test_wp_count_comments_post_trashed() { 82 $this->factory->comment->create( array(82 self::$factory->comment->create( array( 83 83 'comment_approved' => 'post-trashed' 84 84 ) ); … … 96 96 97 97 public function test_wp_count_comments_cache() { 98 $post_id = $this->factory->post->create( array(98 $post_id = self::$factory->post->create( array( 99 99 'post_status' => 'publish' 100 100 ) ); 101 $comment_id = $this->factory->comment->create( array(101 $comment_id = self::$factory->comment->create( array( 102 102 'comment_approved' => '1', 103 103 'comment_post_ID' => $post_id
Note: See TracChangeset
for help on using the changeset viewer.