Skip to content

Commit

Permalink
MNT Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Dec 16, 2024
1 parent a1ae139 commit 8cce5b7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/php/Forms/DropdownFieldTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ public function testEmptySourceDoesntBlockValidation()
$this->assertTrue($field->validate()->isValid());
}

public function provideGetDefaultValue(): array
public static function provideGetDefaultValue(): array
{
return [
[
Expand Down Expand Up @@ -648,9 +648,7 @@ public function provideGetDefaultValue(): array
];
}

/**
* @dataProvider provideGetDefaultValue
*/
#[DataProvider('provideGetDefaultValue')]
public function testGetDefaultValue(mixed $value, bool $hasEmptyDefault, mixed $expected): void
{
$field = new DropdownField('MyField', source: ['one' => 'one', 'two' => 'two', '3' => 'three']);
Expand Down

0 comments on commit 8cce5b7

Please sign in to comment.