- Timestamp:
- 09/23/2024 12:48:32 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/renderCommentTemplate.php
r56559 r59081 220 220 * Test that both "Older Comments" and "Newer Comments" are displayed in the correct order 221 221 * inside the Comment Query Loop when we enable pagination on Discussion Settings. 222 * In order to do that, it should exist a query var 'cpage' set with the $comment_args['paged'] value.223 222 * 224 223 * @ticket 55505 224 * @ticket 60806 225 225 * @covers ::build_comment_query_vars_from_block 226 226 */ 227 public function test_build_comment_query_vars_from_block_sets_ cpage_var() {227 public function test_build_comment_query_vars_from_block_sets_max_num_pages() { 228 228 229 229 // This could be any number, we set a fixed one instead of a random for better performance. … … 254 254 $actual = build_comment_query_vars_from_block( $block ); 255 255 $this->assertSame( $comment_query_max_num_pages, $actual['paged'] ); 256 $this->assertSame( $comment_query_max_num_pages, get_query_var( 'cpage' ) );257 256 } 258 257
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)