We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcc66e3 commit 901fe0dCopy full SHA for 901fe0d
src/Symfony/Component/Validator/Tests/Validator/AbstractTest.php
@@ -511,7 +511,7 @@ public function testAddCustomizedViolation()
511
->setParameter('%param%', 'value')
512
->setInvalidValue('Invalid value')
513
->setPlural(2)
514
- ->setCode(42)
+ ->setCode('42')
515
->addViolation();
516
};
517
@@ -528,7 +528,7 @@ public function testAddCustomizedViolation()
528
$this->assertSame($entity, $violations[0]->getRoot());
529
$this->assertSame('Invalid value', $violations[0]->getInvalidValue());
530
$this->assertSame(2, $violations[0]->getPlural());
531
- $this->assertSame(42, $violations[0]->getCode());
+ $this->assertSame('42', $violations[0]->getCode());
532
}
533
534
public function testNoDuplicateValidationIfClassConstraintInMultipleGroups()
0 commit comments