From feb1ad477326e484de0631d720307533ae6e2132 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 20 Apr 2022 15:38:43 +0200 Subject: [PATCH] Try adding at top level --- ...ss-block-library-comment-template-test.php | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/phpunit/class-block-library-comment-template-test.php b/phpunit/class-block-library-comment-template-test.php index 8099ed1f08cf61..b2a4e46d324ffc 100644 --- a/phpunit/class-block-library-comment-template-test.php +++ b/phpunit/class-block-library-comment-template-test.php @@ -144,17 +144,17 @@ function test_rendering_comment_template() { } /** - * Test rendering nested comments: + * Test rendering nested comments, and for correct odd/even classes. * * └─ comment 1 - *   └─ comment 2 - *    └─ comment 4 + * └─ comment 2 *   └─ comment 3 + *    └─ comment 4 */ function test_rendering_comment_template_nested() { $first_level_ids = self::factory()->comment->create_post_comments( self::$custom_post->ID, - 2, + 1, array( 'comment_parent' => self::$comment_ids[0], 'comment_author' => 'Test', @@ -193,7 +193,17 @@ function test_rendering_comment_template_nested() { '', << -
  • +
  • + +
    + Hello world +
    +
  • +
  • -
  • - -
    - Hello world -
    -