public function CurrencyValidatorTest::testInvalidCurrencies

@dataProvider getInvalidCurrencies

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/Constraints/CurrencyValidatorTest.php, line 87

Class

CurrencyValidatorTest

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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