Make WordPress Core

Changeset 55153


Ignore:
Timestamp:
01/27/2023 08:49:15 PM (10 months ago)
Author:
davidbaumwald
Message:

Tests: Resolve some line endings issues in blocks/renderCommentTemplate.php on Windows machines.

This change resolves a unit test failure in Tests_Blocks_RenderReusableCommentTemplate::test_rendering_comment_template_nested() on systems using \r\n line endings.

Props SergeyBiryukov.
See #56793.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/blocks/renderCommentTemplate.php

    r54889 r55153  
    334334        $top_level_ids = self::$comment_ids;
    335335        $expected      = str_replace(
    336             array( "\n", "\t" ),
     336            array( "\r\n", "\n", "\t" ),
    337337            '',
    338338            <<<END
     
    388388        $this->assertSame(
    389389            $expected,
    390             str_replace( array( "\n", "\t" ), '', $block->render() )
     390            str_replace( array( "\r\n", "\n", "\t" ), '', $block->render() )
    391391        );
    392392    }
Note: See TracChangeset for help on using the changeset viewer.