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
8 merge requests!8376Drupal views: adding more granularity to the ‘use ajax’ functionality,!8300Issue #3443586 View area displays even when parent view has no results.,!7567Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7565Issue #3153723 by quietone, Hardik_Patel_12: Change the scaffolding...,!7509Change label "Block description" to "Block type",!7344Issue #3292350 by O'Briat, KlemenDEV, hswong3i, smustgrave, quietone: Update...,!6922Issue #3412959 by quietone, smustgrave, longwave: Fix 12 'un' words,!6848Issue #3417553 by longwave: Remove withConsecutive() in CacheCollectorTest
Pipeline #106448 canceled
......@@ -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