mirror of
git://develop.git.wordpress.org/
synced 2025-02-06 23:50:43 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@55153 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b6f9fff7c3
commit
ece2e850ca
@ -333,7 +333,7 @@ class Tests_Blocks_RenderReusableCommentTemplate extends WP_UnitTestCase {
|
|||||||
|
|
||||||
$top_level_ids = self::$comment_ids;
|
$top_level_ids = self::$comment_ids;
|
||||||
$expected = str_replace(
|
$expected = str_replace(
|
||||||
array( "\n", "\t" ),
|
array( "\r\n", "\n", "\t" ),
|
||||||
'',
|
'',
|
||||||
<<<END
|
<<<END
|
||||||
<ol class="wp-block-comment-template">
|
<ol class="wp-block-comment-template">
|
||||||
@ -387,7 +387,7 @@ END
|
|||||||
|
|
||||||
$this->assertSame(
|
$this->assertSame(
|
||||||
$expected,
|
$expected,
|
||||||
str_replace( array( "\n", "\t" ), '', $block->render() )
|
str_replace( array( "\r\n", "\n", "\t" ), '', $block->render() )
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user