File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,7 @@ on other extensions. You need add those extensions to the factory object::
177177 use Symfony\Component\Form\Forms;
178178 use Symfony\Component\Form\FormBuilder;
179179 use Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension;
180+ use Symfony\Component\Validator\ConstraintViolationList;
180181
181182 class TestedTypeTest extends TypeTestCase
182183 {
@@ -185,7 +186,7 @@ on other extensions. You need add those extensions to the factory object::
185186 parent::setUp();
186187
187188 $validator = $this->getMock('\Symfony\Component\Validator\ValidatorInterface');
188- $validator->method('validate')->will($this->returnValue(array ()));
189+ $validator->method('validate')->will($this->returnValue(new ConstraintViolationList ()));
189190
190191 $this->factory = Forms::createFormFactoryBuilder()
191192 ->addExtensions($this->getExtensions())
You can’t perform that action at this time.
0 commit comments