File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ public function testAddCustomizedViolation()
511
511
->setParameter ('%param% ' , 'value ' )
512
512
->setInvalidValue ('Invalid value ' )
513
513
->setPlural (2 )
514
- ->setCode (42 )
514
+ ->setCode (' 42 ' )
515
515
->addViolation ();
516
516
};
517
517
@@ -528,7 +528,7 @@ public function testAddCustomizedViolation()
528
528
$ this ->assertSame ($ entity , $ violations [0 ]->getRoot ());
529
529
$ this ->assertSame ('Invalid value ' , $ violations [0 ]->getInvalidValue ());
530
530
$ this ->assertSame (2 , $ violations [0 ]->getPlural ());
531
- $ this ->assertSame (42 , $ violations [0 ]->getCode ());
531
+ $ this ->assertSame (' 42 ' , $ violations [0 ]->getCode ());
532
532
}
533
533
534
534
public function testNoDuplicateValidationIfClassConstraintInMultipleGroups ()
You can’t perform that action at this time.
0 commit comments