a38116cca4
fix cs
2025-06-20 17:31:13 +02:00
7aca08c89e
Allow to remove the canceled workflow to be deleted, if canceled
...
- OP#812
- https://champs-libres.openproject.com/work_packages/812
2024-11-06 17:10:48 +01:00
313fb9ffdf
PHP CS Fixer updated (3.63.1 -> v3.64.0)
2024-09-04 14:38:56 +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
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
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
bc2041cbdd
apply more cs rules for php-cs
2023-10-17 13:27:03 +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
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
5f6e506300
Fix: AuthorizationHelperTest: remove deprecated and deprecation of PrepareScopeTrait
2023-07-27 23:51:57 +02:00
dde3002100
DX: apply rector rules up to php8.0
2023-04-28 22:30:33 +02:00
746ed4f5e5
DX: fix cs
2023-04-15 00:43:55 +02:00
858ade467c
DX: rector rules upt to PHP 74
2023-04-15 00:20:19 +02:00
b9a7530f7a
DX: apply rector rulesset up to PHP72
2023-03-29 22:32:52 +02:00
70871176fc
DX: fix cs
2023-02-06 17:47:54 +01:00
2e60b6735a
DX: more cs
2022-11-07 11:31:23 +01:00
055acbf43c
DX: more code style fixes
2022-11-07 11:30:51 +01:00
9699e2304a
fix cs: declare type and license header mismatch
2022-10-06 22:25:43 +02:00
67c3f3a840
fix cs with licencse header
2022-10-05 17:08:14 +02:00
Pol Dellaiera
0f31a49890
fix: Update namespace to prevent having issues with PSR4 autoloading.
2022-02-01 09:10:32 +01:00
0378df42b6
fix cs
2022-01-27 17:08:00 +01:00
Pol Dellaiera
6ebcd87508
tests: Replace assertInternalType
with proper method.
...
See https://github.com/sebastianbergmann/phpunit/issues/3369
2022-01-04 16:21:06 +01:00
Pol Dellaiera
cf588c97c0
cs: Autofix.
2022-01-04 14:41:52 +01:00
Pol Dellaiera
6a0ce72836
tests: Remove @expectException
annotation.
2021-12-21 16:22:31 +01:00
Pol Dellaiera
b55c19cd9e
fix: Fix return types in tests.
2021-12-21 15:26:22 +01:00
Pol Dellaiera
70ca203e23
fix: Fix return types in tests.
2021-12-21 15:19:36 +01:00
Pol Dellaiera
3d0be940f0
fix: Fix return types in tests.
2021-12-21 15:02:12 +01:00
fa5001265f
fixes on tests
2021-12-08 10:56:39 +00:00
Pol Dellaiera
a3da9c538c
tests: Fix argument type.
2021-11-30 14:22:15 +01:00
Pol Dellaiera
cd3be25c22
cs: Remove duplicated headers.
2021-11-30 13:54:58 +01:00
Pol Dellaiera
47c5855a21
cs: Switch to a stricter way of coding - this might break in a lot of places.
2021-11-30 13:33:18 +01:00
Pol Dellaiera
91d12c4a96
cs: Enable risky rule static_lambda
.
2021-11-30 11:43:34 +01:00
Pol Dellaiera
a9188355c5
cs: Enable more risky rules.
2021-11-30 11:37:57 +01:00
Pol Dellaiera
3ea35682eb
cs: Second part - ignore test/app
subdirectory.
2021-11-23 14:34:34 +01:00
Pol Dellaiera
8f96a1121d
cs: Fix code style (safe rules only).
2021-11-23 14:08:50 +01:00
Pol Dellaiera
70ed9e75db
tests: Fix "...Class "Chill\MainBundle\Security\Resolver\CenterResolverDispatcher" is declared "final" and cannot be mocked....".
2021-11-23 12:41:09 +01:00
b6c58a5c31
Continue work on ACL rewritting
...
* fix center resolver dispatcher
* add scope resolver
* tests for authorization helper
2021-09-20 13:56:44 +02:00
74598ee926
apply new role on accompanying period
2021-09-20 13:56:43 +02:00
dc09c9424a
refactor ACL for easy voter. Apply on TaskVoter
2021-09-20 13:56:43 +02:00
7596bd5a06
fix tests for chill main
2021-04-27 16:33:44 +02:00
eaa0ad925f
fix folder name
2021-03-18 13:37:13 +01:00