Skip to content

Commit 2c910da

Browse files
committed
Fix testParseMarkdownIssuesWithDescription - use double quotes for actual newlines
The test assertion was using single-quoted string where \n is literal backslash-n characters instead of actual newline characters. Changed to double-quoted string so \n is interpreted as actual newlines, matching what the production parseMarkdownIssues function returns.
1 parent 204efd7 commit 2c910da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/phpunit/unit/CodeReviewWorker/ParsingFunctionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function testParseMarkdownIssuesWithDescription(): void
293293
$issues = $this->parseMarkdownIssues($markdown);
294294

295295
$this->assertCount(1, $issues, 'Should find one issue');
296-
$this->assertSame('The issue description\nspans multiple lines\nand has important details.', $issues[0]['message']);
296+
$this->assertSame("The issue description\nspans multiple lines\nand has important details.", $issues[0]['message']);
297297
}
298298

299299
public function testParseMarkdownIssuesWithoutFileLine(): void

0 commit comments

Comments
 (0)