From c5693842b2c4c942a5ce7139836e9a70d4b5f5ec Mon Sep 17 00:00:00 2001 From: Juliette <663378+jrfnl@users.noreply.github.com> Date: Tue, 1 Oct 2024 13:11:31 +0200 Subject: [PATCH] Tests_Import_Parser::test_blank_lines_in_content(): minor test fix (#169) Co-authored-by: jrfnl --- phpunit/tests/parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpunit/tests/parser.php b/phpunit/tests/parser.php index aaede3b..ab3b2f0 100644 --- a/phpunit/tests/parser.php +++ b/phpunit/tests/parser.php @@ -236,7 +236,7 @@ function test_blank_lines_in_content() { $result = $parser->parse( $file ); // Check the number of new lines characters - $this->assertSame( 3, substr_count( $result['posts'][0]['post_content'], PHP_EOL ), $message ); + $this->assertSame( 3, substr_count( $result['posts'][0]['post_content'], "\n" ), $message ); } }