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)
148
148
$ this ->assertNoViolation ();
149
149
}
150
150
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
-
165
151
public function testNoViolationOnNullObjectWithPropertyPath ()
166
152
{
167
153
$ constraint = $ this ->createConstraint (['propertyPath ' => 'propertyPath ' ]);
Original file line number Diff line number Diff line change @@ -50,17 +50,6 @@ public function testValidComparisonToPropertyPath()
50
50
$ this ->assertNoViolation ();
51
51
}
52
52
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
-
64
53
public function testInvalidComparisonToPropertyPath ()
65
54
{
66
55
$ constraint = new Bic (['ibanPropertyPath ' => 'value ' ]);
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