916724c0c5
Merge branch 'master' into upgrade-sf5
2024-06-24 10:46:21 +02:00
0bfb3de465
fix cs
2024-06-11 16:58:33 +02:00
61877e0157
Refactor UserRenderTest and remove unused methods
...
The UserRenderTest class has been refactored significantly. Redundant methods related to the booting kernel of Symfony have been removed. The approach of mocking objects has been changed, swapping from traditional mocking to prophecy mocking.
2024-06-07 13:06:11 +02:00
c9e13be736
pipeline fixes for phpstan, cs-fixer, rector
2024-04-16 20:16:45 +02:00
b9b342fe44
Set isActive property for userjob
2024-04-16 20:09:00 +02:00
0bc9fff825
test still failing with error saying column phonenumber of relation users does not exist
2024-04-16 12:01:40 +02:00
4e0d8e4def
fix userNormalizerTest by adding clock in the construct of UserNormalizer
2024-04-16 12:01:40 +02:00
addc623add
php style fixer
2024-04-16 12:01:37 +02:00
1b96deb4ee
try to fix userRenderTest: mock not working
2024-04-16 11:55:54 +02:00
835409cb94
work on userRenderTest
2024-04-16 11:55:54 +02:00
8d58805abd
work on user render test
2024-04-16 11:55:54 +02:00
c3a799cb7d
work on test logic
2024-04-16 11:55:54 +02:00
d91b1a70bf
work on userRender test
2024-04-16 11:52:58 +02:00
29d53c53a4
fixup! Fix configuration and usage of password hasher
2024-04-08 13:45:37 +02:00
8700352cf8
Fix configuration and usage of password hasher
2024-04-08 13:21:34 +02:00
5be85a4fc6
Refactored code to use PHP8 attributes instead of annotations
...
In this change, Doctrine and validation annotations have been replaced with PHP8 Attributes. The Rector tool has been configured with a list of annotations to convert to attributes. As a consequence, the PHPStan's rules have been updated to reflect these changes. The PHP8's nullable operator (?) has been added where required, and comments in field declaration have been replaced with #[Attribute] syntax.
2024-04-08 12:11:29 +02:00
72016e1a21
Apply rector rules: add annotation for doctrine mapping
2024-04-05 00:01:30 +02:00
579bd829f8
Apply rector rules: symfony up to 54
2024-04-04 23:30:25 +02:00
553fb271e4
fix container operations within tests
2024-04-04 22:26:42 +02:00
931c69eee4
Merge remote-tracking branch 'origin/master' into upgrade-sf5
2024-04-04 18:45:01 +02:00
d29415317b
Allow users to display news on homepage (+ configuring a dashboard homepage)
2024-03-07 21:08:00 +00:00
1d636f5e9e
Fix deprecations and code style issues
2024-03-07 15:26:58 +01: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
510023d630
fix cs
2024-02-13 21:04:09 +01:00
2ddfd56401
fix phpstan and rector errors, fix path for rector rules
2024-02-13 19:12: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
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
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