You are here

public function DecimalValidatorTest::testNegativeDecimal in Form API Validation 8.2

Testing negative decimal value.

File

tests/src/Unit/Validators/DecimalValidatorTest.php, line 52

Class

DecimalValidatorTest
Tests generation of ice cream.

Namespace

Drupal\Tests\fapi_validation\Unit\Validators

Code

public function testNegativeDecimal() {
  $validator = new Validator('decimal', '-123.23');
  $this
    ->assertTrue($this->plugin
    ->validate($validator, [], $this->decoratedFormState));
}