@@ -212,7 +212,7 @@ public function testAbortDotRuleMappingIfNotSynchronized()
212
212
$ this ->assertCount (0 , $ grandChild ->getErrors (), $ grandChild ->getName ().' should not have an error, but has one ' );
213
213
}
214
214
215
- public function testMappingIfNotSubmitted ()
215
+ public function testAbortMappingIfNotSubmitted ()
216
216
{
217
217
$ violation = $ this ->getConstraintViolation ('children[address].data.street ' );
218
218
$ parent = $ this ->getForm ('parent ' );
@@ -230,12 +230,12 @@ public function testMappingIfNotSubmitted()
230
230
231
231
$ this ->mapper ->mapViolation ($ violation , $ parent );
232
232
233
- $ this ->assertCount (0 , $ parent ->getErrors (), $ parent ->getName ().' should not have an error ' );
234
- $ this ->assertCount (0 , $ child ->getErrors (), $ child ->getName ().' should not have an error ' );
235
- $ this ->assertCount (1 , $ grandChild ->getErrors (), $ grandChild ->getName ().' should have one error ' );
233
+ $ this ->assertCount (0 , $ parent ->getErrors (), $ parent ->getName ().' should not have an error, but has one ' );
234
+ $ this ->assertCount (0 , $ child ->getErrors (), $ child ->getName ().' should not have an error, but has one ' );
235
+ $ this ->assertCount (0 , $ grandChild ->getErrors (), $ grandChild ->getName ().' should not have an error, but has one ' );
236
236
}
237
237
238
- public function testDotRuleMappingIfNotSubmitted ()
238
+ public function testAbortDotRuleMappingIfNotSubmitted ()
239
239
{
240
240
$ violation = $ this ->getConstraintViolation ('data.address ' );
241
241
$ parent = $ this ->getForm ('parent ' );
@@ -255,9 +255,9 @@ public function testDotRuleMappingIfNotSubmitted()
255
255
256
256
$ this ->mapper ->mapViolation ($ violation , $ parent );
257
257
258
- $ this ->assertCount (0 , $ parent ->getErrors (), $ parent ->getName ().' should not have an error ' );
259
- $ this ->assertCount (0 , $ child ->getErrors (), $ child ->getName ().' should not have an error ' );
260
- $ this ->assertCount (1 , $ grandChild ->getErrors (), $ grandChild ->getName ().' should have an error ' );
258
+ $ this ->assertCount (0 , $ parent ->getErrors (), $ parent ->getName ().' should not have an error, but has one ' );
259
+ $ this ->assertCount (0 , $ child ->getErrors (), $ child ->getName ().' should not have an error, but has one ' );
260
+ $ this ->assertCount (0 , $ grandChild ->getErrors (), $ grandChild ->getName ().' should not have an error, but has one ' );
261
261
}
262
262
263
263
public function provideDefaultTests ()
0 commit comments