File tree Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Expand file tree Collapse file tree 3 files changed +2
-27
lines changed Original file line number Diff line number Diff line change @@ -148,20 +148,6 @@ public function testValidComparisonToPropertyPath($comparedValue)
148148 $ this ->assertNoViolation ();
149149 }
150150
151- /**
152- * @dataProvider provideValidComparisonsToPropertyPath
153- */
154- public function testValidComparisonToPropertyPathOnArray ($ comparedValue )
155- {
156- $ constraint = $ this ->createConstraint (['propertyPath ' => '[root][value] ' ]);
157-
158- $ this ->setObject (['root ' => ['value ' => 5 ]]);
159-
160- $ this ->validator ->validate ($ comparedValue , $ constraint );
161-
162- $ this ->assertNoViolation ();
163- }
164-
165151 public function testNoViolationOnNullObjectWithPropertyPath ()
166152 {
167153 $ constraint = $ this ->createConstraint (['propertyPath ' => 'propertyPath ' ]);
Original file line number Diff line number Diff line change @@ -50,17 +50,6 @@ public function testValidComparisonToPropertyPath()
5050 $ this ->assertNoViolation ();
5151 }
5252
53- public function testValidComparisonToPropertyPathOnArray ()
54- {
55- $ constraint = new Bic (['ibanPropertyPath ' => '[root][value] ' ]);
56-
57- $ this ->setObject (['root ' => ['value ' => 'FR14 2004 1010 0505 0001 3M02 606 ' ]]);
58-
59- $ this ->validator ->validate ('SOGEFRPP ' , $ constraint );
60-
61- $ this ->assertNoViolation ();
62- }
63-
6453 public function testInvalidComparisonToPropertyPath ()
6554 {
6655 $ constraint = new Bic (['ibanPropertyPath ' => 'value ' ]);
Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ public function testAddCustomizedViolation()
511511 ->setParameter ('%param% ' , 'value ' )
512512 ->setInvalidValue ('Invalid value ' )
513513 ->setPlural (2 )
514- ->setCode (42 )
514+ ->setCode (' 42 ' )
515515 ->addViolation ();
516516 };
517517
@@ -528,7 +528,7 @@ public function testAddCustomizedViolation()
528528 $ this ->assertSame ($ entity , $ violations [0 ]->getRoot ());
529529 $ this ->assertSame ('Invalid value ' , $ violations [0 ]->getInvalidValue ());
530530 $ this ->assertSame (2 , $ violations [0 ]->getPlural ());
531- $ this ->assertSame (42 , $ violations [0 ]->getCode ());
531+ $ this ->assertSame (' 42 ' , $ violations [0 ]->getCode ());
532532 }
533533
534534 public function testNoDuplicateValidationIfClassConstraintInMultipleGroups ()
You can’t perform that action at this time.
0 commit comments