public function BlankValidatorTest::testInvalidValues

@dataProvider getInvalidValues

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/BlankValidatorTest.php, line 54

Class

BlankValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testInvalidValues($value) {
  $constraint = new Blank(array(
    'message' => 'myMessage',
  ));
  $this->context
    ->expects($this
    ->once())
    ->method('addViolation')
    ->with('myMessage', array(
    '{{ value }}' => $value,
  ));
  $this->validator
    ->validate($value, $constraint);
}