From 936301ff04f31f0f1dd9f9c0a005520871aff2f3 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Wed, 20 Apr 2022 16:41:35 +0200 Subject: [PATCH] Revert "This might work" This reverts commit bde09d5a15ab7a09f26c792a8bd8ffe2e803d7d5. --- ...lass-block-library-comment-template-test.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/phpunit/class-block-library-comment-template-test.php b/phpunit/class-block-library-comment-template-test.php index b14c0ee71ec236..8099ed1f08cf61 100644 --- a/phpunit/class-block-library-comment-template-test.php +++ b/phpunit/class-block-library-comment-template-test.php @@ -144,12 +144,11 @@ function test_rendering_comment_template() { } /** - * Test rendering nested comments, and for correct odd/even classes. + * Test rendering nested comments: * * └─ comment 1 *   └─ comment 2 *    └─ comment 4 - *    └─ comment 5 *   └─ comment 3 */ function test_rendering_comment_template_nested() { @@ -167,7 +166,7 @@ function test_rendering_comment_template_nested() { $second_level_ids = self::factory()->comment->create_post_comments( self::$custom_post->ID, - 2, + 1, array( 'comment_parent' => $first_level_ids[0], 'comment_author' => 'Test', @@ -224,19 +223,9 @@ function test_rendering_comment_template_nested() { Hello world -
  • - -
    - Hello world -
    -
  • -
  • +