@@ -76,16 +76,16 @@ public function testRegisterHandleExpectsException()
7676 /**
7777 * @dataProvider getStatusCodeDataProvider
7878 */
79- public function testGetStatusCode ($ expected , $ data , $ isBound , $ isValid , $ isBoundCalled , $ isValidCalled , $ noContentCode )
79+ public function testGetStatusCode ($ expected , $ data , $ isSubmitted , $ isValid , $ isSubmittedCalled , $ isValidCalled , $ noContentCode )
8080 {
8181 $ reflectionMethod = new \ReflectionMethod ('FOS\RestBundle\View\ViewHandler ' , 'getStatusCode ' );
8282 $ reflectionMethod ->setAccessible (true );
8383
84- $ form = $ this ->getMock ('Symfony\Component\Form\Form ' , array ('isBound ' , 'isValid ' ), array (), '' , false );
84+ $ form = $ this ->getMock ('Symfony\Component\Form\Form ' , array ('isSubmitted ' , 'isValid ' ), array (), '' , false );
8585 $ form
86- ->expects ($ this ->exactly ($ isBoundCalled ))
87- ->method ('isBound ' )
88- ->will ($ this ->returnValue ($ isBound ));
86+ ->expects ($ this ->exactly ($ isSubmittedCalled ))
87+ ->method ('isSubmitted ' )
88+ ->will ($ this ->returnValue ($ isSubmitted ));
8989 $ form
9090 ->expects ($ this ->exactly ($ isValidCalled ))
9191 ->method ('isValid ' )
@@ -215,14 +215,14 @@ public function testShouldReturnErrorResponseWhenDataContainsFormAndFormIsNotVal
215215 $ viewHandler = new ViewHandler (null , $ expectedFailedValidationCode = Codes::HTTP_I_AM_A_TEAPOT );
216216 $ viewHandler ->setContainer ($ container );
217217
218- $ form = $ this ->getMock ('Symfony \\Component \\Form \\Form ' , array ('createView ' , 'getData ' , 'isValid ' , 'isBound ' ), array (), '' , false );
218+ $ form = $ this ->getMock ('Symfony \\Component \\Form \\Form ' , array ('createView ' , 'getData ' , 'isValid ' , 'isSubmitted ' ), array (), '' , false );
219219 $ form
220220 ->expects ($ this ->any ())
221221 ->method ('isValid ' )
222222 ->will ($ this ->returnValue (false ));
223223 $ form
224224 ->expects ($ this ->any ())
225- ->method ('isBound ' )
225+ ->method ('isSubmitted ' )
226226 ->will ($ this ->returnValue (true ));
227227
228228 $ view = new View ($ form );
@@ -266,7 +266,7 @@ public function testCreateResponseWithoutLocation($format, $expected, $createVie
266266 $ viewHandler ->setContainer ($ container );
267267
268268 if ($ form ) {
269- $ data = $ this ->getMock ('Symfony\Component\Form\Form ' , array ('createView ' , 'getData ' , 'isValid ' , 'isBound ' ), array (), '' , false );
269+ $ data = $ this ->getMock ('Symfony\Component\Form\Form ' , array ('createView ' , 'getData ' , 'isValid ' , 'isSubmitted ' ), array (), '' , false );
270270 $ data
271271 ->expects ($ this ->exactly ($ createViewCalls ))
272272 ->method ('createView ' )
@@ -281,7 +281,7 @@ public function testCreateResponseWithoutLocation($format, $expected, $createVie
281281 ->will ($ this ->returnValue ($ formIsValid ));
282282 $ data
283283 ->expects ($ this ->any ())
284- ->method ('isBound ' )
284+ ->method ('isSubmitted ' )
285285 ->will ($ this ->returnValue (true ));
286286 } else {
287287 $ data = array ('foo ' => 'bar ' );
0 commit comments