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
nobohan
00bbbd32d6
fix deprecations: use fqcn
2018-04-13 17:25:05 +02:00
fdb5ec6733
new architecture for tests
2017-07-04 16:15:20 +02:00
8cda910918
fix test
...
The button seems to be translated
2016-12-19 10:02:28 +01: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
f145ae7f88
re-introduce post_text extension in fields.html.twig + tests
2015-12-30 16:57:16 +01:00
8849d8bb54
fix test for custom field helper
...
The test was requesting an entity not present in database
2015-12-29 17:54:00 +01:00
cad44ae461
fix test 'complete scenario'
...
The link 'modifier' was changed to 'Modifier'
2015-12-28 20:54:34 +01:00
54391b02f3
consistency in twig methods
...
The method chill_custom_fields_is_empty take now the fields as first argument, and the customField as second argument, to be consistent with other twig methods.
2015-12-28 00:54:38 +01:00
d2039893b3
Simplifiying Helper and twig functions
...
Now, the CustomFieldsHelper methods and the twig function which render customFields require always a `Chill\CustomFields\Entity\CustomField`.
The possibility to add a slug and an object as argument to those method is abandoned, and was not used in other bundle (nevertheless, the method to catch a customField from his slug was buggy).
2015-12-28 00:38:27 +01:00
f7dd99ab87
add test for custom_fields_group_widget
2015-12-24 16:05:49 +01:00
09a69765b9
adding test for customFieldRendering function
2015-12-23 23:46:44 +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
97475ca3b6
fix test for config according to new dev deps
2015-11-30 22:13:59 +01:00
4c328d0aae
remove dump informations
2015-11-30 22:12:59 +01:00
9b5544beaf
create test for custom fields group complete scenario
...
a deps is added on the bundle "person" in order to make test working.
2015-11-30 22:10:04 +01:00
c9ca7c1e1b
fix creation of custom field without cfgroup id
2015-11-30 21:31:58 +01:00
Marc Ducobu
7cf270cee4
Removing travis config file
2015-10-30 15:57:27 +01:00
d21595d306
add gitlab-ci to project
...
Squashed commit of the following:
commit 7baa7bddc3a1613816c691e454841baa885a5095
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date: Mon Oct 26 21:13:47 2015 +0100
fix auth and database url
commit c47ad68586749e19fce125da9820d0fd0b2bf575
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date: Mon Oct 26 20:59:33 2015 +0100
add gitlab-ci
2015-10-26 22:01:57 +01:00
Marc Ducobu
2d60c62d91
Reparing tests
2015-09-30 14:32:20 +02:00
Marc Ducobu
eb4da0a71d
Tests/CustomFieldTestHelper.php : refactoring : code indentation
2015-09-30 14:03:28 +02:00
Marc Ducobu
b11a356fd3
Tests/CustomFields/CustomFieldsTextTest.php : refactoring
2015-09-30 14:01:04 +02:00
Marc Ducobu
11c27edd2b
Solving travis-ci problem
2015-09-28 15:56:56 +02:00
edd74b710b
fix copyright statement
2015-02-22 21:49:08 +01:00
6c4851134d
Add migrations to custom field travis build
...
refs #402
2015-01-30 18:29:59 +01:00
3707b08aee
remove entities for testing purpose - clean code
...
fix #259
2015-01-22 09:50:53 +01:00
b946e2d0a3
Update test to match with new admin route & button name
2014-12-27 16:10:47 +01:00
7a7cb25d7a
update Fixtures app config
2014-12-27 16:10:23 +01:00
Marc Ducobu
9f4783c9f1
Fixing tests
2014-11-12 15:57:52 +01:00
952d70f049
choice with other + some development tips
2014-11-10 11:25:54 +01:00
568bf4f3c2
add doctrine fixtures bundle
2014-11-10 11:25:53 +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
4c9b6a6a15
fix travis port for postgresql
2014-11-04 22:38:23 +01:00
663b7705ae
move routes to /admin zone
2014-11-04 22:35:38 +01:00
11a71d99ec
allow server:run with built-in server and create route loader
2014-11-04 22:34:05 +01:00
0dc198f4e3
add travis
2014-11-04 21:34:33 +01:00
9ec7889595
final test for configuration refs #265
2014-11-04 17:22:56 +01:00
8011746b26
move bundle to root dir for inclusion in packagist refs #259
2014-11-04 17:10:59 +01:00