308 Commits

Author SHA1 Message Date
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
4a99480f50
fixup! Fix some tests 2023-12-14 23:22:48 +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
be57c96a2f Add phonenumber to user 2023-11-16 15:12:12 +00:00
5f805626f7
[export] sort filters and aggregators by title 2023-10-19 14:39:22 +02:00
bc2041cbdd
apply more cs rules for php-cs 2023-10-17 13:27:03 +02:00
48e0a0af7d
DX: Increase the number of iteration to ensure that the test really pass on random executions 2023-10-17 10:27:33 +02:00
a6fcdb5256
Merge remote-tracking branch 'origin/rector/rules-symfony' into rector/rules-symfony 2023-10-16 18:07:42 +02:00
b32fa42afa
DX: fix test on AccompanyingCourseExportHelperTest.php 2023-10-16 17:52:25 +02:00
be8975ee04
Merge branch '146_parcours_annules' into rector/rules-symfony 2023-10-16 17:52:06 +02:00
21524f052e
Create a custom dql function to build json object (JSON_BUILD_OBJECT) 2023-10-16 11:52:02 +02:00
9f476dddaf php cs fixer 2023-10-04 11:20:20 +02:00
af4bee4d50 correct test 2023-10-04 10:43:37 +02:00
2d4d1eda50 cs-fixer 2023-10-03 19:40:23 +02:00
baeccf0970 fix Entity/UserTest and phpstan error 2023-10-03 19:40:23 +02:00
6665a443b9 phpstan, rector, cs-fixer 2023-10-03 19:40:23 +02:00
fc919e9547 add tests for MainScope and UserJob getters/setters 2023-10-03 19:40:23 +02:00
2d7bc06539
Fix CS 2023-10-02 15:02:15 +02:00
294aaf5bed
Replace the CenterControllerTest by a smoke test
Since that the center's admin has been replaced by a CRUD Controller, we have to adapt the test accordingly.
2023-10-02 12:52:40 +02:00
b0a7612329 make test easier to read 2023-09-29 08:51:14 +02:00
0c5b35926b php cs fixer and phpstan 2023-09-29 07:52:50 +02:00
29983cc2ad Work on test, but still fails 2023-09-21 16:18:51 +02:00
260a173a61 Add test for accompanyingPeriodExportHelper: closing motive exclusion 2023-09-21 15:21:14 +02:00
754515f185 php cs fixes 2023-09-14 12:25:56 +02:00
d3b68f8f8f
AuthorizationHelper: compare center and scope based on id, not on equality
For an unknown reason, in some circumstances, the use of the `===` comparator does not work when comparing Center instances and Scope instances. Then, we compare them based on the id.
2023-09-13 10:08:44 +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
9375d50112
Merge remote-tracking branch 'origin/master' into rector/rules-symfony
# Conflicts:
#	src/Bundle/ChillAsideActivityBundle/src/Entity/AsideActivity.php
#	src/Bundle/ChillAsideActivityBundle/src/Export/Export/ListAsideActivity.php
2023-09-12 15:21:15 +02:00
75bca46b98
cs fixer 2023-09-07 12:16:47 +02:00
7b28bb7561
Improve NotificationMailerTest by adding an assertion
This assertion is performed by Prophecy's shouldBeCalled* method.
2023-09-07 11:30:04 +02:00
34ee2b3ba5
Fix new CS 2023-09-06 16:18:28 +02:00
53cc43f8d3
NotificationMailer: add tests when user does not have any email 2023-09-06 15:59:36 +02:00
f3fbd5314a
Add test to NotificationMailer::postPersistComment 2023-09-06 15:47:45 +02:00
608663d25c
Fix path to comply with psr-4 2023-09-03 14:55:15 +02:00
2c52a5bffa
Fix tests 2023-09-01 16:10:04 +02:00
d8062be131
mark test as legacy 2023-09-01 11:08:13 +02:00
e72df84442
DX: rector corrections 2023-09-01 11:08:13 +02:00
d44f5d7af8
mark test as legacy 2023-09-01 10:53:53 +02:00
6f11dffcbd
Remove deprecation linked to kernel shutdown 2023-08-31 18:36:37 +02:00
7c58880139
Remove usage of deprecated Role class 2023-08-31 17:08:18 +02:00
b85cd1b994
DX: apply rector rules for phpunit up to 90 2023-08-31 11:08:42 +02:00
1e353ed74b
Fix loading of random address reference in AddressToReferenceMatcherControllerTest.php 2023-08-25 18:26:32 +02:00
43ac6726aa
Fix selector button 2023-08-02 23:25:19 +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
b6a094aeee
force readonly properties on dummy class used in test 2023-07-28 01:33:00 +02:00
dd21694544
Fix RefreshAddressToGeographicalUnitMaterializedViewCronJobTest: use ClockInterface to handle properly now and use more random tests 2023-07-27 23:52:38 +02:00
5f6e506300
Fix: AuthorizationHelperTest: remove deprecated and deprecation of PrepareScopeTrait 2023-07-27 23:51:57 +02:00
9f63d9ed0f
Fix test on RefreshAddressToGeographicalUnitMaterializedViewCronJob
Alter the signature on run: add an empty array
2023-07-27 22:57:36 +02:00
97dad842ea
Fix test on DateNormalizer 2023-07-27 22:55:52 +02:00