Skip to content

Commit 0c10f7f

Browse files
authored
Fix unit tests (#650)
1 parent c7ae1b9 commit 0c10f7f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Tests/Form/Handler/AuthorizeFormHandlerTest.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,13 @@ public function testProcessWillHandleRequestOnPost()
354354
->willReturn($this->form)
355355
;
356356

357+
$this->form
358+
->expects($this->once())
359+
->method('isSubmitted')
360+
->with()
361+
->willReturn(true)
362+
;
363+
357364
$this->form
358365
->expects($this->once())
359366
->method('isValid')
@@ -413,6 +420,13 @@ public function testProcessWillHandleRequestOnPostAndWillProcessDataIfFormIsVali
413420
->willReturn($this->form)
414421
;
415422

423+
$this->form
424+
->expects($this->once())
425+
->method('isSubmitted')
426+
->with()
427+
->willReturn(true)
428+
;
429+
416430
$this->form
417431
->expects($this->once())
418432
->method('isValid')

0 commit comments

Comments
 (0)