Changeset 25578 for trunk/tests/phpunit/tests/post.php
- Timestamp:
- 09/23/2013 07:07:08 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/post.php
r25554 r25578 818 818 $count1 = wp_count_posts( $post_type, 'readable' ); 819 819 $this->assertEquals( 10, $count1->publish ); 820 add_filter( ' count_posts', array( $this, 'filter_wp_count_posts' ) );820 add_filter( 'wp_count_posts', array( $this, 'filter_wp_count_posts' ) ); 821 821 822 822 $count2 = wp_count_posts( $post_type, 'readable' ); 823 823 $this->assertEquals( 7, $count2->publish ); 824 824 825 remove_filter( ' count_posts', array( $this, 'filter_wp_count_posts' ) );825 remove_filter( 'wp_count_posts', array( $this, 'filter_wp_count_posts' ) ); 826 826 } 827 827
Note: See TracChangeset
for help on using the changeset viewer.