Skip to content
Snippets Groups Projects
Verified Commit f67824a9 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3422481 by mondrake, smustgrave: Change...

Issue #3422481 by mondrake, smustgrave: Change PrimitiveTypeConstraintValidatorTest::provideTestValidate to static

(cherry picked from commit dd0f4ed4)
parent ee61813c
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ class PrimitiveTypeConstraintValidatorTest extends UnitTestCase {
*
* @dataProvider provideTestValidate
*/
public function testValidate(PrimitiveInterface $typed_data, $value, $valid) {
public function testValidate(PrimitiveInterface $typed_data, string|TranslatableMarkup|int|float|array|null $value, bool $valid): void {
$context = $this->createMock(ExecutionContextInterface::class);
$context->expects($this->any())
->method('getObject')
......@@ -50,7 +50,7 @@ public function testValidate(PrimitiveInterface $typed_data, $value, $valid) {
$validate->validate($value, $constraint);
}
public function provideTestValidate() {
public static function provideTestValidate(): array {
$data = [];
$data[] = [new BooleanData(DataDefinition::create('boolean')), NULL, TRUE];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment