Skip to content

Commit 0b9c7c9

Browse files
committed
refactor: rules test
1 parent 64e0b07 commit 0b9c7c9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/system/Validation/RulesTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -779,7 +779,7 @@ public static function provideRequiredWithAndOtherRuleWithValueZero(): iterable
779779
}
780780

781781
#[DataProvider('provideRequiredWithout')]
782-
public function testRequiredWithout(?string $field, ?string $check, bool $expected): void
782+
public function testRequiredWithout(string $field, ?string $check, bool $expected): void
783783
{
784784
$data = [
785785
'foo' => 'bar',
@@ -802,8 +802,8 @@ public static function provideRequiredWithout(): iterable
802802
yield from [
803803
['nope', 'bars', false],
804804
['foo', 'nope', true],
805-
[null, null, false],
806-
[null, 'foo', true],
805+
['', null, false],
806+
['', 'foo', true],
807807
['foo', null, true],
808808
[
809809
'array.emptyField1',

0 commit comments

Comments
 (0)