@@ -212,7 +212,7 @@ public function testAbortDotRuleMappingIfNotSynchronized()
212212 $ this ->assertCount (0 , $ grandChild ->getErrors (), $ grandChild ->getName ().' should not have an error, but has one ' );
213213 }
214214
215- public function testAbortMappingIfNotSubmitted ()
215+ public function testMappingIfNotSubmitted ()
216216 {
217217 $ violation = $ this ->getConstraintViolation ('children[address].data.street ' );
218218 $ parent = $ this ->getForm ('parent ' );
@@ -230,12 +230,12 @@ public function testAbortMappingIfNotSubmitted()
230230
231231 $ this ->mapper ->mapViolation ($ violation , $ parent );
232232
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 ' );
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 ' );
236236 }
237237
238- public function testAbortDotRuleMappingIfNotSubmitted ()
238+ public function testDotRuleMappingIfNotSubmitted ()
239239 {
240240 $ violation = $ this ->getConstraintViolation ('data.address ' );
241241 $ parent = $ this ->getForm ('parent ' );
@@ -255,9 +255,9 @@ public function testAbortDotRuleMappingIfNotSubmitted()
255255
256256 $ this ->mapper ->mapViolation ($ violation , $ parent );
257257
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 ' );
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 ' );
261261 }
262262
263263 public function provideDefaultTests ()
0 commit comments