File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Tests/Extension/DataCollector Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -497,16 +497,21 @@ public function testCollectSubmittedDataCountsErrors()
497
497
$ form2 = $ this ->createForm ('form2 ' );
498
498
499
499
$ form1 ->add ($ childForm1 );
500
-
501
- $ this ->dataExtractor ->expects ($ this ->at (0 ))
500
+ $ this ->dataExtractor
501
+ ->method ('extractConfiguration ' )
502
+ ->will ($ this ->returnValue (array ()));
503
+ $ this ->dataExtractor
504
+ ->method ('extractDefaultData ' )
505
+ ->will ($ this ->returnValue (array ()));
506
+ $ this ->dataExtractor ->expects ($ this ->at (4 ))
502
507
->method ('extractSubmittedData ' )
503
508
->with ($ form1 )
504
509
->will ($ this ->returnValue (array ('errors ' => array ('foo ' ))));
505
- $ this ->dataExtractor ->expects ($ this ->at (1 ))
510
+ $ this ->dataExtractor ->expects ($ this ->at (5 ))
506
511
->method ('extractSubmittedData ' )
507
512
->with ($ childForm1 )
508
513
->will ($ this ->returnValue (array ('errors ' => array ('bar ' , 'bam ' ))));
509
- $ this ->dataExtractor ->expects ($ this ->at (2 ))
514
+ $ this ->dataExtractor ->expects ($ this ->at (8 ))
510
515
->method ('extractSubmittedData ' )
511
516
->with ($ form2 )
512
517
->will ($ this ->returnValue (array ('errors ' => array ('baz ' ))));
You can’t perform that action at this time.
0 commit comments