File tree 1 file changed +2
-1
lines changed
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::
177
177
use Symfony\Component\Form\Forms;
178
178
use Symfony\Component\Form\FormBuilder;
179
179
use Symfony\Component\Form\Extension\Validator\Type\FormTypeValidatorExtension;
180
+ use Symfony\Component\Validator\ConstraintViolationList;
180
181
181
182
class TestedTypeTest extends TypeTestCase
182
183
{
@@ -185,7 +186,7 @@ on other extensions. You need add those extensions to the factory object::
185
186
parent::setUp();
186
187
187
188
$validator = $this->getMock('\Symfony\Component\Validator\ValidatorInterface');
188
- $validator->method('validate')->will($this->returnValue(array ()));
189
+ $validator->method('validate')->will($this->returnValue(new ConstraintViolationList ()));
189
190
190
191
$this->factory = Forms::createFormFactoryBuilder()
191
192
->addExtensions($this->getExtensions())
You can’t perform that action at this time.
0 commit comments