Skip to content

Commit 92c52e9

Browse files
[Validator] Fix tests
1 parent 7790f97 commit 92c52e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Validator/Tests/Constraints/WeekValidatorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testWeekIsValidWeekNumber(string|\Stringable $value, bool $expec
3333
$this->validator->validate($value, $constraint);
3434

3535
if ($expectedViolation) {
36-
$this->buildViolation('The week "{{ value }}" is not a valid week.')
36+
$this->buildViolation('This value is not a valid week.')
3737
->setCode(Week::INVALID_WEEK_NUMBER_ERROR)
3838
->setParameter('{{ value }}', $value)
3939
->assertRaised();
@@ -68,7 +68,7 @@ public function testTooLow()
6868
$constraint = new Week(min: '2015-W10');
6969

7070
$this->validator->validate('2015-W08', $constraint);
71-
$this->buildViolation('The value should not be before week "{{ min }}".')
71+
$this->buildViolation('This value should not be before week "{{ min }}".')
7272
->setInvalidValue('2015-W08')
7373
->setParameter('{{ min }}', '2015-W10')
7474
->setCode(Week::TOO_LOW_ERROR)

0 commit comments

Comments
 (0)