Skip to content

Commit 6adf504

Browse files
committed
Use value from data provider
1 parent 4645ca4 commit 6adf504

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/Objects/EnumPropertyTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ public function invalidEnumEntriesUntypedEnumDataProvider(): array
271271
/**
272272
* @dataProvider implicitNullDataProvider
273273
*
274+
* @param bool $implicitNull
275+
*
274276
* @throws FileSystemException
275277
* @throws RenderException
276278
* @throws SchemaException
@@ -280,7 +282,7 @@ public function testNotProvidedEnumItemInRequiredUntypedEnumThrowsAnException(bo
280282
$this->expectException(ValidationException::class);
281283
$this->expectExceptionMessage('Missing required value for property');
282284

283-
$className = $this->generateClassFromFile('RequiredUntypedEnumProperty.json');
285+
$className = $this->generateClassFromFile('RequiredUntypedEnumProperty.json', null, false, $implicitNull);
284286

285287
new $className([]);
286288
}

0 commit comments

Comments
 (0)