@@ -36,7 +36,7 @@ public function testRegisterFormHandler()
3636 $ testHandler = new TestFormHandler ();
3737 $ formHandler ->registerHandler ($ testHandler );
3838
39- $ this ->assertAttributeEquals ([TestFormHandler::class => $ testHandler ], ' handlers ' , $ formHandler );
39+ $ this ->assertSame ([TestFormHandler::class => $ testHandler ], $ formHandler-> getHandlers () );
4040 }
4141
4242 public function testHandlerFormNotSubmitted ()
@@ -91,7 +91,7 @@ public function testHandlerFormSuccess()
9191 $ dispatcher = $ this ->createMock (EventDispatcherInterface::class);
9292 $ dispatcher ->expects ($ this ->once ())
9393 ->method ('dispatch ' )
94- ->with (FormHandlerEvents::EVENT_FORM_SUCCESS );
94+ ->with ($ this -> anything (), FormHandlerEvents::EVENT_FORM_SUCCESS );
9595
9696 $ formHandler = new FormHandler ($ requestStack , $ dispatcher , $ factory );
9797 $ formHandler ->registerHandler (new TestFormHandler ());
@@ -125,7 +125,7 @@ public function testHandlerFormFail()
125125 $ dispatcher = $ this ->createMock (EventDispatcherInterface::class);
126126 $ dispatcher ->expects ($ this ->once ())
127127 ->method ('dispatch ' )
128- ->with (FormHandlerEvents::EVENT_FORM_FAIL );
128+ ->with ($ this -> anything (), FormHandlerEvents::EVENT_FORM_FAIL );
129129
130130 $ formHandler = new FormHandler ($ requestStack , $ dispatcher , $ factory );
131131 $ formHandler ->registerHandler (new TestFormHandler ());
0 commit comments