Skip to content

Commit

Permalink
Merge pull request #108 from neos/albe-adjust-stringlengthvalidator
Browse files Browse the repository at this point in the history
TASK: Adjust test to StringLengthValidator change
  • Loading branch information
davidspiola committed Dec 1, 2019
2 parents c993f7e + 5593fde commit 612d649
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/Unit/Core/Model/PageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,9 @@ public function validatorKeyCorrectlyAddsValidator()
$firstValidator = $validators[0];
Assert::assertSame(2, count($validators));
$this->assertInstanceOf(StringLengthValidator::class, $firstValidator);
Assert::assertSame(['minimum' => 10, 'maximum' => PHP_INT_MAX], $firstValidator->getOptions());
$validatorOptions = $firstValidator->getOptions();
Assert::assertSame($validatorOptions['minimum'], 10);
Assert::assertSame($validatorOptions['maximum'], PHP_INT_MAX);
}

/**
Expand Down

0 comments on commit 612d649

Please sign in to comment.