mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX: Fix CompositeField test that relied on a DropdownField bug
A DropdownField without a source no longer returns a validation error.
This commit is contained in:
parent
e5d3b28a4d
commit
8c7459a708
@ -93,7 +93,7 @@ class CompositeFieldTest extends SapphireTest
|
||||
public function testValidation()
|
||||
{
|
||||
$field = CompositeField::create(
|
||||
$fieldOne = DropdownField::create('A'),
|
||||
$fieldOne = DropdownField::create('A', '', [ 'value' => 'value' ]),
|
||||
$fieldTwo = TextField::create('B')
|
||||
);
|
||||
$validator = new RequiredFields();
|
||||
|
Loading…
Reference in New Issue
Block a user