Changeset 43571 for trunk/tests/phpunit/tests/comment/getPageOfComment.php
- Timestamp:
- 08/17/2018 01:50:26 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/comment/getPageOfComment.php
r42343 r43571 65 65 66 66 $this->assertEquals( 67 2, get_page_of_comment( 68 $trackbacks[0], array( 67 2, 68 get_page_of_comment( 69 $trackbacks[0], 70 array( 69 71 'per_page' => 2, 70 72 'type' => 'trackback', … … 73 75 ); 74 76 $this->assertEquals( 75 3, get_page_of_comment( 76 $pingbacks[0], array( 77 3, 78 get_page_of_comment( 79 $pingbacks[0], 80 array( 77 81 'per_page' => 2, 78 82 'type' => 'pingback', … … 81 85 ); 82 86 $this->assertEquals( 83 5, get_page_of_comment( 84 $trackbacks[0], array( 87 5, 88 get_page_of_comment( 89 $trackbacks[0], 90 array( 85 91 'per_page' => 2, 86 92 'type' => 'pings', … … 137 143 // Prime cache for trackbacks. 138 144 $page_trackbacks = get_page_of_comment( 139 $trackbacks[1], array( 145 $trackbacks[1], 146 array( 140 147 'per_page' => 3, 141 148 'type' => 'trackback', … … 146 153 $num_queries = $wpdb->num_queries; 147 154 $page_comments = get_page_of_comment( 148 $comment, array( 155 $comment, 156 array( 149 157 'per_page' => 3, 150 158 'type' => 'comment',
Note: See TracChangeset
for help on using the changeset viewer.