50 Commits

Author SHA1 Message Date
e59f58f461 [closing motive] add an hierarchy + admin section for closing motives 2020-03-12 12:19:15 +01:00
f5de2d8049 fix tests
some classes have changed, fix it
2017-08-29 17:00:32 +02:00
25cad2f11d add ListPerson
Add / complete list of person.

Some SQL function are added to allow to get the last address at a given date.
2017-01-31 12:18:07 +01:00
bd78722a6b fix test for inserting addresses 2016-11-13 21:41:51 +01:00
ce7c149c35 fix bugs in accompanying periods
ref #11
2016-05-17 10:02:45 +02:00
ff5bda12b6 add new / create address + tests 2016-03-13 22:14:40 +01:00
d419be2af1 set some fields visibility as configurable
Some fields can now be hidden through configuration
2016-02-05 23:05:53 +01:00
d70be5ea85 add person detection improvement: inversion firstName<->lastName 2016-01-18 22:30:57 +01:00
4e4f45e2bc fix test with gender update
As the value was translated, the test cannot check in the page if the value
is updated.

We also remove the "incomplete" test, as we cannot consider this test is 
incomplete because the new value is checked from the database.
2016-01-01 23:10:39 +01:00
04c56f667a register birthdateValidator
in birthdate validator, improve the message
2015-12-10 14:55:12 +01:00
4e00af3e48 moving the memory_limit to phpunit.xml config file 2015-10-12 21:30:31 +02:00
Marc Ducobu
4aeba2019d Refactoring Tests/Controller/AccompanyingPeriodControllerTest.php : indentation and adding doc 2015-08-24 15:54:13 +02:00
Marc Ducobu
f967285e34 Raw integration of accompanying person (with respect of 'cahier de cahrge) 2015-08-24 14:41:24 +02:00
Marc Ducobu
9decbf119a Improving csv export test 2015-08-18 11:57:53 +02:00
Marc Ducobu
fce3de4046 PersonControllerViewTest : refactoring (doc, indentation) 2015-08-18 09:32:57 +02:00
Marc Ducobu
91e133aec6 Removing view test from PersonControllerUpdateTest.php 2015-08-18 09:31:05 +02:00
Marc Ducobu
91bd7a4529 PersonControllerUpdateTest : refactoring (doc + more tests + indentation) 2015-08-18 09:19:15 +02:00
Marc Ducobu
8bc893fe90 Removing DefaultControllerTest (no test & no controller) 2015-08-17 17:41:37 +02:00
Marc Ducobu
5584666165 Debug 2015-08-14 19:20:16 +02:00
Marc Ducobu
31e734f2c7 Renaming genre into gender & dateOfBirth into birthdate 2015-08-11 17:47:11 +02:00
513d9aefbc Implement user right refs #263
Merge of branch add_acl

Squashed commit of the following:

commit a3265a71014fc74bcc456aa9436494fc4ed434ea
Merge: 2522634 b231b14
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Tue Jun 30 09:58:23 2015 +0200

    Merge remote-tracking branch 'origin/master' into add_acl

    in order to future merging of add_acl into master

    Conflicts:
    	Tests/Controller/PersonControllerCreateTest.php

commit 252263400b1fb54091a0cd36d9ab84812c3a9942
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Mon Jun 29 23:00:25 2015 +0200

    check acl on timeline page

commit 5f08806585ce4ce1d58c6c507b191221b924d861
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 19 22:24:18 2015 +0200

    remove dead code

commit 860d62d9c0d9db2186eee725e7ef553ddf1f98f3
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 19 22:19:02 2015 +0200

    add access condition for link to person view in person view

commit e7b295000dd420309288e83920f6656679d36173
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 19 22:13:04 2015 +0200

    add ACL on person view

commit 7b1f90a2a28c1aec5ee0eb78206c75a9f1e09c60
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 19 21:47:49 2015 +0200

    add autorization for filtering person results in search

commit c6669164e2e36b555bed0745d5c7c12b53468b97
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 19 21:47:26 2015 +0200

    add fixtures for roles defined by person bundle

commit 8f30f5222efe531fb77a2e22b6af8069c5814d00
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 19 20:13:17 2015 +0200

    [transfer purpose][ci-skip]

commit e8ca4ce4842e619342a90d4343b725c2946f7d70
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 19 17:31:27 2015 +0200

    should fix reference problem

commit 8c32524a0fd61d504e9640705b97d10bd9b2b993
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 19 17:29:48 2015 +0200

    fix test about inheritance

commit d93cef2c596aba7fc977cc8db354241d6a77e6e2
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Thu Jun 18 21:38:59 2015 +0200

    add role hierarchy + test

commit 5066cc5318d67f20e3cff9f91f6d2b6a94d5f9c1
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Thu Jun 18 01:28:40 2015 +0200

    add tests for person voter

commit cf3359b11b16972db3c55102a3c8b2aae2c27789
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Thu Jun 18 01:07:30 2015 +0200

    fix "pass by reference" error

commit 94942eb34330813a10124ba58ec814ca685930c5
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Wed Jun 17 22:04:49 2015 +0200

    fix syntax error ($this->$is not correct)

commit 82d25df6b0e21b4032f4fc82dee203ccd1a067dd
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Wed Jun 17 21:51:41 2015 +0200

    add first test for person voter

commit 84e0d05be07477175db1ef95f3716a3c420291ce
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Wed Jun 17 21:50:06 2015 +0200

    define person voter as a service + CHILL_PERSON_SEE

commit bd55e505a179b0df4133903f766d9a8feb469900
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Tue Jun 16 20:57:25 2015 +0200

    add test for creating person with user multi center

commit d29147c8e70b2ae8313d973fe4b3d45d3f064d9b
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Mon Jun 15 09:11:56 2015 +0200

    fix tests - add center to persons

    since a center is associated with center, people used in tests must be associated with a center.
    => associate a center to people used in tests

commit cfac1ea68aaf615b5f8e9e67388f5407e5095d72
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Mon Jun 15 09:06:24 2015 +0200

    remove errors on deprecation

commit e1df87df87e831f3827721313603bcf41b3da891
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 12 22:31:03 2015 +0200

    fix migration error

commit 733fa96a2d874b84d2a0ece6664e4a64eed10b4d
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Wed Jun 10 21:17:15 2015 +0200

    add center type on creation forms

    tests are not adapted yet [ci skip]

commit c0d1d1b1c8fd58d9c15bf59d66de28a848df6d35
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Tue Jun 9 23:11:07 2015 +0200

    fix bug in migration

commit 693abfb7253dfe955beb63de3aebc05a15363cdb
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Tue Jun 9 22:41:21 2015 +0200

    add checks on migration

    check that there are data or not in database and, if there are data,
    create default center if required.

    If not required, the default center is the first in the list.

commit 8127ea8d49e094c81ce65e838416953bc8d47678
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Mon Jun 8 00:33:39 2015 +0200

    add first impl of PersonVoter (not tested) [ci skip]

commit 2ea674dbcf8848603f0fefa109abf2412722013f
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Mon Jun 8 00:32:46 2015 +0200

    add center to person

commit 0b1e3f137ace9eeb959b80cdbdfa3636c75af715
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Sat Jun 6 11:02:49 2015 +0200

    add phpunit bridge to handle deprecation msg

commit 70a4fd16181badad8ac9b87fd24e1000c7b1a734
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 5 12:42:01 2015 +0200

    remove deprecdation warning in phpunit

commit b3b8d1deefbdc72505606df7ca217771277e3555
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 5 11:41:36 2015 +0200

    fix deprecation of pattern in routing

    pattern => path in routing.yml

commit eea1252d8517ee582c958dc6045f05c1438dd9d1
Author: Julien Fastré <julien.fastre@champs-libres.coop>
Date:   Fri Jun 5 10:56:02 2015 +0200

    switch to symfony 2.7 [ci-skip]
2015-06-30 14:41:31 +02:00
Marc Ducobu
b231b14605 adding test for bug #478 - refs #478 2015-04-08 17:56:57 +02:00
Marc Ducobu
5207a8fa12 Removing @todo - refs #410 2015-03-06 20:38:51 +01:00
Marc Ducobu
5634a19174 Improve person accompanyingPeriod validation - close #410 2015-03-06 20:36:21 +01:00
Marc Ducobu
c80326d0ed Refactoring : rm empty line 2015-03-06 13:13:20 +01:00
Marc Ducobu
6e59b8e724 Refactoriing 2015-03-06 13:10:04 +01:00
008cb5b216 fix refreshing person problem
the entity "person" wasn't managed any more by the ORM, for an unknow reason.
2015-03-05 15:45:26 +01:00
e2e89d433f add test for timeline/accompnying period 2015-02-27 17:42:01 +01:00
Marc Ducobu
caffa5b30f Better test 2015-02-26 18:55:21 +01:00
Marc Ducobu
dcd951b90a License improving 2015-02-26 12:09:17 +01:00
Marc Ducobu
b8bc875513 Adding Test for person export 2015-02-19 15:20:06 +01:00
Marc Ducobu
a2dafa01dc Adding license 2015-02-19 11:31:01 +01:00
Marc Ducobu
0157c3c9ba Changing comments : history -> accompanying period 2015-02-12 16:40:38 +01:00
Marc Ducobu
9ea23987a3 PersonHistoryFile -> AccompanyingPeriod - refs #275 - debug 2015-02-06 14:38:29 +01:00
9fadc5d9c5 passing last value on closing motive by reference
refs #411
2015-02-05 14:35:22 +01:00
69042c683f add tests for closing/opening accompanying periods
refs #274

check :

- closing the current period works
- closing a period with date closing AFTER the opening fails
- creating a new period works
- create a period with closing after current (opened) period fails => fails see refs #410
- create a period with opening and closing after current (opened) period fails => fails see refs #410
- create a period with end date between another fails
- create a period with end date after opening date fails
- create a period between another period (date closing and date opening) fails
- create a period with date opening inside another period fails
2015-02-03 15:22:38 +01:00
7ebaafe768 create first tests for accompanying period manipulation
[ci skip]
2015-02-03 10:03:36 +01:00
aa8d211e55 add test for choose languages
fix #409
2015-01-30 18:14:27 +01:00
72182a8c77 move utilities at the end of the file 2015-01-30 18:02:09 +01:00
0a1ff9e141 complete tests for person edition
close #405

add a test on false date, but this made the validation fail.
2015-01-29 18:42:42 +01:00
5992977a3e test person's edit form
update the controller to get the validation
2015-01-27 22:17:39 +01:00
1f2c8bdb72 fix person creation validation close #369 2014-12-09 22:53:24 +01:00
10da02f9ba fix last test 2014-12-07 23:15:48 +01:00
cfc881096c go on with test on page "add a person"
the tests definition are defined by https://redmine.champs-libres.coop/projects/chillperson/wiki/Test_plan_for_page_%22add_a_person%22
2014-12-07 23:09:04 +01:00
07615192c6 first test for "add a person" page
(to be continued)
2014-12-07 00:19:50 +01:00
29ee79c645 create first tests on history file 2014-11-08 00:40:00 +01:00
f7d24ae520 automatic regexp to move namespace CL\Chill => Chill 2014-11-07 10:01:20 +01:00
377a69d26f deal with opening/closing the files 2013-11-26 23:00:30 +01:00
03091a94d6 view one person + list 2013-10-31 16:14:20 +01:00
17b4f22136 initial structure of the bundle 2013-10-26 11:52:46 +02:00