@@ -140,6 +140,9 @@ |
||
| 140 | 140 | // $this->assertCount(2, $typeForm->vars['choices']); |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | + /** |
|
| 144 | + * @return ValidatorInterface |
|
| 145 | + */ |
|
| 143 | 146 | protected function mockValidator() { |
| 144 | 147 | $validator = $this->getMockBuilder(ValidatorInterface::class)->setMethods(array('validate', 'getErrors'))->getMockForAbstractClass(); |
| 145 | 148 | $validator->method('validate')->willReturn(array()); |