154 Commits

Author SHA1 Message Date
f0f651edea
update cs after php-cs-fixer upgrade 2024-09-12 12:02:33 +02:00
916724c0c5
Merge branch 'master' into upgrade-sf5 2024-06-24 10:46:21 +02:00
19e34d5dc0
PHP CS Fixer updated (3.57.2 -> v3.59.3) 2024-06-17 17:28:29 +02:00
78a3dfd65e
Add validation for household metadata
A new validation group 'household_metadata' has been added to the Household form. The 'waitingForBirth' field now has a type check, and for the 'waitingForBirthDate' field, an expression is added to ensure it's set if 'waitingForBirth' is true. Simultaneously, error handling for form submission has been enriched in the HouseholdController to display specific error messages.
2024-04-08 14:52:40 +02:00
e3bd68112e
fix test for editing household metadata 2024-04-08 13:44:22 +02:00
1ee3b9e2f0
Remove the tearDown method, because we are not able to delete entities linked with materialized views 2024-04-04 23:00:27 +02:00
0081146a78
Change non-static class-level variables and methods to static in tests's data providers
The update modifies several test classes within the "chill-project" to change non-static class-level variables and methods to static ones. This change has been made to improve readability, performance, and to eliminate unnecessary instantiation of class objects in test scenarios. Also, flush and clear actions on the entity manager are moved to individual data providers.
2024-02-19 15:38:28 +01:00
f251e6f100
upgrade phpunit: make data provider static 2024-02-14 12:28:14 +01:00
f889d67e94
fixes after merge of master into upgrade-sf4 2024-02-12 22:31:16 +01:00
37af488f69
Merge branch 'master' into upgrade-sf5 2024-02-12 21:50:34 +01:00
aa0cadfa84
Add conflict resolution for generated API + add test
Implemented additional code to handle version conflicts when editing accompanying period work. By keeping track of the current version and returning an HTTP conflict response when it doesn't match with the provided entity version, users are properly alerted to update their entity before continuing. Furthermore, adjusted BadRequestHttpException to match correct arguments order and introduced entity version as query parameter for the URL.

ensure kernel is shutdown after generating data
2024-02-08 14:33:30 +01:00
036fe8d6f8
upgrade php-cs 3.49 2024-02-07 10:43:53 +01:00
27ce322690
upgrade php-cs-fixer to 3.47.0 2024-01-22 12:14:39 +01:00
3c8e59e088 php cs fixes after updating php cs fixer 2024-01-10 10:31:25 +01:00
825cd127d1
update php-cs-fixer and rector + fix rules 2024-01-09 13:50:45 +01:00
4d72933edb Add condition to household export queries to exclude accompanying periods that are in draft. 2023-12-20 10:46:29 +00:00
1098bafd3d
Replaced the deprecated 'self::$container->get' with 'self::getContainer()->get' using rector
This change is made to comply with the new Symfony standards and to avoid deprecation warnings for future versions. The update touches various functionalities, including retrieving EntityManagerInterface instance and various service classes within the test files.
2023-12-14 23:36:56 +01:00
2dd1b7c943
Fix some tests 2023-12-14 23:05:35 +01:00
912f7d3211
remove some deprecations 2023-12-14 14:09:57 +01:00
47c3be6217
Merge remote-tracking branch 'origin/master' into upgrade-sf5 2023-12-13 16:04:48 +01:00
99b7b2ec88
upgrade rector rules and apply them 2023-12-12 17:17:15 +01:00
f02873c6e0
Refactor RelationshipApiControllerTest
The codebase has been improved by refining and optimizing the test methods in the RelationshipApiControllerTest class. The check for relations was also added to exclude persons without any relationship, this may exclude duplicate relations. This change should avoid errors on this test.
2023-12-08 11:07:14 +01:00
bc2041cbdd
apply more cs rules for php-cs 2023-10-17 13:27:03 +02:00
93b189b091
DX: Fix HouseholdApiControllerTest.php 2023-10-16 16:20:25 +02:00
efcb903d10
Fix direct kernel deprecation in AccompanyingCourseApiControllerTest 2023-10-16 16:20:24 +02:00
d2323e91ca
new cs rule: single_line_empty_body
Rule is added to the last version of php-cs-fixer
2023-09-12 15:58:59 +02:00
40b7c8ad8f
fix rector and cs 2023-09-01 17:50:07 +02:00
2c52a5bffa
Fix tests 2023-09-01 16:10:04 +02:00
e72df84442
DX: rector corrections 2023-09-01 11:08:13 +02:00
d595c17cd4
ensure kernel shutdown between client creations 2023-09-01 10:53:42 +02:00
6f11dffcbd
Remove deprecation linked to kernel shutdown 2023-08-31 18:36:37 +02:00
37419e06fc
Skip test for reviewing duplication detection on person creation 2023-08-30 20:29:30 +02:00
1c0fd57913
Apply rector rules + fix CS 2023-08-30 14:55:26 +02:00
d01172274d
Remove unused properties 2023-08-30 14:37:20 +02:00
364a67b83a
Skip test which apply on different kernel configuration 2023-08-30 14:31:37 +02:00
1b8acfab24
Fix person view test 2023-08-30 13:58:46 +02:00
690697cb35
Fix person update controller tests 2023-08-29 17:37:56 +02:00
5314e7b501
Fix tests on person's controller 2023-08-29 15:02:38 +02:00
52d791f6d0
Refactor PersonControllerUpdateTest: separate validation test on dedicated test 2023-08-29 14:48:32 +02:00
80684f65fe
Fix button selecton on PersonControllerCreateTest 2023-08-28 17:59:13 +02:00
3f2339bc60
Find person in center using centerCurrent in RelationshipApiControllerTest 2023-08-28 16:09:22 +02:00
2c83b4c912
Fix HouseholdACLAwareRepository: use the correct association to person's center 2023-08-28 16:09:21 +02:00
ad1e5ecc95
Fix data provider for person, using the association with person center current 2023-08-25 22:23:18 +02:00
24cc6a816b
Fix calls to templating service 2023-08-02 23:25:19 +02:00
009a0326d9
Configure routes using annotation 2023-08-02 23:05:33 +02:00
333579de06
DX: use more precise service parameter and use dataprovider for test 2023-07-28 13:06:45 +02:00
e839b03cc9
Update path to twig template with new syntax 2023-07-28 12:16:50 +02:00
f570fe92a5
apply rector rules 2023-07-28 02:40:02 +02:00
c20f65eebb
apply rector rules: symfony **UP TO** 44 2023-07-28 01:52:53 +02:00
6f2b538e27
Use Person::centerHistory to load fixtures with given center 2023-07-28 01:22:55 +02:00