- Timestamp:
- 11/29/2022 12:32:37 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/blocks/renderCommentTemplate.php
r53430 r54889 88 88 * @covers ::build_comment_query_vars_from_block 89 89 */ 90 function test_build_comment_query_vars_from_block_with_context() {90 public function test_build_comment_query_vars_from_block_with_context() { 91 91 $parsed_blocks = parse_blocks( 92 92 '<!-- wp:comment-template --><!-- wp:comment-author-name /--><!-- wp:comment-content /--><!-- /wp:comment-template -->' … … 119 119 * @covers ::build_comment_query_vars_from_block 120 120 */ 121 function test_build_comment_query_vars_from_block_with_context_no_pagination() {121 public function test_build_comment_query_vars_from_block_with_context_no_pagination() { 122 122 update_option( 'page_comments', false ); 123 123 $parsed_blocks = parse_blocks( … … 149 149 * @covers ::build_comment_query_vars_from_block 150 150 */ 151 function test_build_comment_query_vars_from_block_no_context() {151 public function test_build_comment_query_vars_from_block_no_context() { 152 152 $parsed_blocks = parse_blocks( 153 153 '<!-- wp:comment-template --><!-- wp:comment-author-name /--><!-- wp:comment-content /--><!-- /wp:comment-template -->' … … 179 179 * @covers ::build_comment_query_vars_from_block 180 180 */ 181 function test_build_comment_query_vars_from_block_pagination_with_no_comments() {181 public function test_build_comment_query_vars_from_block_pagination_with_no_comments() { 182 182 $comments_per_page = get_option( 'comments_per_page' ); 183 183 $default_comments_page = get_option( 'default_comments_page' ); … … 231 231 * @covers ::build_comment_query_vars_from_block 232 232 */ 233 function test_build_comment_query_vars_from_block_sets_cpage_var() {233 public function test_build_comment_query_vars_from_block_sets_cpage_var() { 234 234 235 235 // This could be any number, we set a fixed one instead of a random for better performance. … … 268 268 * @ticket 55567 269 269 */ 270 function test_rendering_comment_template() {270 public function test_rendering_comment_template() { 271 271 $parsed_blocks = parse_blocks( 272 272 '<!-- wp:comment-template --><!-- wp:comment-author-name /--><!-- wp:comment-content /--><!-- /wp:comment-template -->' … … 296 296 * @ticket 55567 297 297 */ 298 function test_rendering_comment_template_nested() {298 public function test_rendering_comment_template_nested() { 299 299 $first_level_ids = self::factory()->comment->create_post_comments( 300 300 self::$custom_post->ID, … … 397 397 * @ticket 55643 398 398 */ 399 function test_render_block_core_comment_content_converts_to_html() {399 public function test_render_block_core_comment_content_converts_to_html() { 400 400 $comment_id = self::$comment_ids[0]; 401 401 $new_content = "Paragraph One\n\nP2L1\nP2L2\n\nhttps://example.com/"; … … 431 431 * @covers ::build_comment_query_vars_from_block 432 432 */ 433 function test_build_comment_query_vars_from_block_with_comment_preview() {433 public function test_build_comment_query_vars_from_block_with_comment_preview() { 434 434 $parsed_blocks = parse_blocks( 435 435 '<!-- wp:comment-template --><!-- wp:comment-author-name /--><!-- wp:comment-content /--><!-- /wp:comment-template -->' … … 472 472 * @ticket 55643 473 473 */ 474 function test_rendering_comment_template_unmoderated_preview() {474 public function test_rendering_comment_template_unmoderated_preview() { 475 475 $parsed_blocks = parse_blocks( 476 476 '<!-- wp:comment-template --><!-- wp:comment-author-name /--><!-- wp:comment-content /--><!-- /wp:comment-template -->'
Note: See TracChangeset
for help on using the changeset viewer.