Skip to content

Commit bac8659

Browse files
committed
fix regression in form tests after pr #13027 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | -
1 parent d5d57fd commit bac8659

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Tests/Extension/DataCollector/FormDataCollectorTest.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -497,16 +497,21 @@ public function testCollectSubmittedDataCountsErrors()
497497
$form2 = $this->createForm('form2');
498498

499499
$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))
502507
->method('extractSubmittedData')
503508
->with($form1)
504509
->will($this->returnValue(array('errors' => array('foo'))));
505-
$this->dataExtractor->expects($this->at(1))
510+
$this->dataExtractor->expects($this->at(5))
506511
->method('extractSubmittedData')
507512
->with($childForm1)
508513
->will($this->returnValue(array('errors' => array('bar', 'bam'))));
509-
$this->dataExtractor->expects($this->at(2))
514+
$this->dataExtractor->expects($this->at(8))
510515
->method('extractSubmittedData')
511516
->with($form2)
512517
->will($this->returnValue(array('errors' => array('baz'))));

0 commit comments

Comments
 (0)