From 8c7459a7082ab3880202a3541bd11ed183465ef1 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Sat, 6 Oct 2018 19:14:34 +1300 Subject: [PATCH] FIX: Fix CompositeField test that relied on a DropdownField bug A DropdownField without a source no longer returns a validation error. --- tests/php/Forms/CompositeFieldTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/php/Forms/CompositeFieldTest.php b/tests/php/Forms/CompositeFieldTest.php index 6dea5af2c..eff072241 100644 --- a/tests/php/Forms/CompositeFieldTest.php +++ b/tests/php/Forms/CompositeFieldTest.php @@ -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();