13 Commits

Author SHA1 Message Date
nobohan
da92b4df56 fix test error due to the removing of deprecated getName method 2018-04-13 17:31:03 +02:00
nobohan
11bd3c66e1 fix test error due to the removing of deprecated getName method 2018-04-13 17:29:59 +02:00
c58d101ade fixing error in creating mock
A public method became protected in phpunit
2016-12-19 09:54:32 +01:00
f288f67bb9 fix error with empty values with multiple and non-existant data
if a value was array(null) or array(_other => null, _choices => null),
the isEmptyValue function failed.
2016-01-01 22:25:05 +01:00
573697d8c7 improve function isEmptyValue + tests 2015-12-18 00:22:09 +01:00
24f9db6ae7 fix bug in changing custom field option
bug description :

> if you change the options of a custom field choice (i.e. from a
> multiple to a single, removing or adding allow_other), the data
> representation change and do not match with the expected
> representation of the form.

This commit fix this bug by switching the data representation to the
current options.
2015-12-17 23:50:24 +01:00
3230659a4b add a required field to custom fields type
ref Chill-project/Chill-CustomFields#17
2015-12-10 17:16:59 +01:00
4f2b605efc add a number field
The field has three option :

- lesser or equal than. If null, this option is ignored ;
- greather or equal than. If null, this options is ignored ;
- precision : the number of decimal after the number ;
- text after the field : a text to show after the field.

The field is rendered as an HTML integer input if precision = 0, or a
symfony number field if precision > 0.

ref chill-project/Chill-CustomFields#11
2015-12-08 19:45:04 +01:00
c9ca7c1e1b fix creation of custom field without cfgroup id 2015-11-30 21:31:58 +01:00
Marc Ducobu
b11a356fd3 Tests/CustomFields/CustomFieldsTextTest.php : refactoring 2015-09-30 14:01:04 +02:00
b946e2d0a3 Update test to match with new admin route & button name 2014-12-27 16:10:47 +01:00
65c814ee27 test form customFieldText creation 2014-11-09 01:53:21 +01:00
7daa1a240e add testing for customfield, correcting request injection 2014-11-08 15:07:15 +01:00