Skip to content

Commit f06768b

Browse files
Fix tests
1 parent 1d32e95 commit f06768b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Constraints/FileValidatorTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,14 +673,15 @@ public function testFilenameMaxLengthIsTooLong(File $constraintFile, string $mes
673673
'{{ filename_max_length }}' => $constraintFile->filenameMaxLength,
674674
])
675675
->setCode(File::FILENAME_TOO_LONG)
676+
->setPlural($constraintFile->filenameMaxLength)
676677
->assertRaised();
677678
}
678679

679680
public static function provideFilenameMaxLengthIsTooLong(): \Generator
680681
{
681682
yield 'Simple case with only the parameter "filenameMaxLength" ' => [
682683
new File(filenameMaxLength: 30),
683-
'The filename is too long. It should have {{ filename_max_length }} characters or less.',
684+
'The filename is too long. It should have {{ filename_max_length }} character or less.|The filename is too long. It should have {{ filename_max_length }} characters or less.',
684685
];
685686

686687
yield 'Case with the parameter "filenameMaxLength" and a custom error message' => [

0 commit comments

Comments
 (0)