FIX Use correct class names in EditableCustomRuleTest fixtures

This commit is contained in:
Robbie Averill 2017-08-15 12:29:39 +12:00
parent 59827e2011
commit 98f69f344f

View File

@ -1,30 +1,30 @@
SilverStripe\UserForms\Model\EditableFormField: SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField:
countryDropdown: countryDropdown:
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField
Name: CountrySelection Name: CountrySelection
Title: "Choose your country" Title: "Choose your country"
DisplayRulesConjunction: And DisplayRulesConjunction: And
ShowOnLoad: false ShowOnLoad: false
SilverStripe\UserForms\Model\EditableFormField\EditableTextField:
irdNumberField: irdNumberField:
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableTextField
Name: IRDNumber Name: IRDNumber
Title: "Enter your IRD Number" Title: "Enter your IRD Number"
countryTextField: countryTextField:
ClassName: SilverStripe\UserForms\Model\EditableFormField\EditableTextField
Name: CountryTextSelection Name: CountryTextSelection
Title: "Enter your country (2 digit prefix)" Title: "Enter your country (2 digit prefix)"
DisplayRulesConjunction: And DisplayRulesConjunction: And
ShowOnLoad: false ShowOnLoad: false
SilverStripe\UserForms\Model\EditableCustomRule: SilverStripe\UserForms\Model\EditableCustomRule:
rule1: rule1:
Display: Show Display: Show
ConditionOption: HasValue ConditionOption: HasValue
FieldValue: NZ FieldValue: NZ
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField.countryDropdown ConditionField: =>SilverStripe\UserForms\Model\EditableFormField\EditableCountryDropdownField.countryDropdown
Parent: =>SilverStripe\UserForms\Model\EditableFormField.irdNumberField Parent: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.irdNumberField
rule2: rule2:
Display: Show Display: Show
ConditionOption: ValueGreaterThan ConditionOption: ValueGreaterThan
FieldValue: 1 FieldValue: 1
ConditionField: =>SilverStripe\UserForms\Model\EditableFormField.countryTextField ConditionField: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.countryTextField
Parent: =>SilverStripe\UserForms\Model\EditableFormField.irdNumberField Parent: =>SilverStripe\UserForms\Model\EditableFormField\EditableTextField.irdNumberField