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:
Sam Minnee 2018-10-06 19:14:34 +13:00
parent e5d3b28a4d
commit 8c7459a708
1 changed files with 1 additions and 1 deletions

View File

@ -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();