- Timestamp:
- 11/04/2021 03:22:47 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getCommentsPagesCount.php
r51568 r52010 14 14 * setUp options 15 15 */ 16 function set_up() {16 public function set_up() { 17 17 parent::set_up(); 18 18 $this->option_page_comments = get_option( 'page_comments' ); … … 27 27 * tearDown options 28 28 */ 29 function tear_down() {29 public function tear_down() { 30 30 update_option( 'page_comments', $this->option_page_comments ); 31 31 update_option( 'comments_per_page', $this->option_page_comments ); … … 38 38 * Validate get_comments_pages_count for empty comments 39 39 */ 40 function test_empty() {40 public function test_empty() { 41 41 // Setup post and comments. 42 42 $post_id = self::factory()->post->create( … … 65 65 * Validate get_comments_pages_count for treaded comments 66 66 */ 67 function test_threaded_comments() {67 public function test_threaded_comments() { 68 68 // Setup post and comments. 69 69 $post = self::factory()->post->create_and_get( … … 85 85 * Validate get_comments_pages_count for option tread_comments 86 86 */ 87 function test_option_thread_comments() {87 public function test_option_thread_comments() { 88 88 89 89 // Setup post and comments. … … 116 116 * Validate $wp_query logic of get_comment_pages_count 117 117 */ 118 function test_wp_query_comments_per_page() {118 public function test_wp_query_comments_per_page() { 119 119 global $wp_query; 120 120 … … 165 165 * Validate max_num_comment_pages logic of get_comment_pages_count 166 166 */ 167 function test_max_num_comment_pages() {167 public function test_max_num_comment_pages() { 168 168 global $wp_query; 169 169 $wp_query = new WP_Query();
Note: See TracChangeset
for help on using the changeset viewer.