2fb46c65c2
Refactor CancelStaleWorkflowCronJobTest to simplify setup
...
Replaced KernelTestCase with TestCase to simplify test setup and removed dependency on the database connection. Added NullLogger to replace mocked LoggerInterface during testing. Updated method call in tests to correctly reference CancelStaleWorkflowMessage class.
2024-09-09 15:16:10 +02:00
f4356ac249
Add test for detecting stale workflows and enhance handler
...
Added a new test to check if workflows are stale in EntityWorkflowTest. Enhanced CancelStaleWorkflowHandler to handle stale workflows more accurately, including checking if workflows have transitioned recently. Updated EntityWorkflow entity to cascade remove workflow steps.
Refactor tests for handler, to avoid using $kernel during tests
2024-09-09 15:08:39 +02:00
d152efe084
Refactor imports and remove redundant type strings
...
This commit refactors the usage of \DateTimeImmutable to ensure consistent namespacing and removes unnecessary string type declarations from constants in CancelStaleWorkflowCronJob. These changes improve code readability and maintainability.
2024-09-09 14:58:19 +02:00
b97eabf0d2
Get workflowComponent directly from registry
2024-09-09 10:46:35 +02:00
2e69d2df90
Adjust test to work with actual workflow + minor fix of handler logic
2024-09-09 10:46:33 +02:00
cb446edd18
Suffix message class with 'Message' and add check on workflow to assert no transitions were applied since message placed in queue
2024-09-09 10:40:42 +02:00
5d84e997c1
Php cs fixes
2024-09-09 10:40:42 +02:00
35199b6993
Create test for CancelStaleWorkflowHandler: wip state
2024-09-09 10:40:42 +02:00
dab68fb409
Add CancelStaleWorkflowCronJobTest
2024-09-09 10:40:41 +02:00
f251e6f100
upgrade phpunit: make data provider static
2024-02-14 12:28:14 +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
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
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
dd21694544
Fix RefreshAddressToGeographicalUnitMaterializedViewCronJobTest: use ClockInterface to handle properly now and use more random tests
2023-07-27 23:52:38 +02:00
9f63d9ed0f
Fix test on RefreshAddressToGeographicalUnitMaterializedViewCronJob
...
Alter the signature on run: add an empty array
2023-07-27 22:57:36 +02:00
023a29cb78
apply rector rules: php up to php82
2023-07-19 23:19:50 +02:00
b0fcffea2d
fixed: take into account the first iteration of the cronjob
2023-07-13 09:03:41 +02:00
a7842b2597
[Addresses] add a cronjob to collate addresses with reference
2023-07-12 18:00:29 +02:00
1552b3c9d7
[Addresses] create a service to collate addresses with the address reference
2023-07-12 17:30:46 +02:00
19034ac1d8
Merge remote-tracking branch 'origin/master' into refactor-using-rector-202303
2023-04-15 00:07:09 +02:00
b0ac8ce5af
Merge remote-tracking branch 'origin/master' into track-address-reference-update
2023-04-12 09:45:19 +02:00
4c5dae60a8
DX: apply rector rulesets up to PHP 73
2023-03-29 22:39:11 +02:00
c56ae08fae
Feature: [address reference] write logic to match existing addresses with updates
...
Feature: [address reference] match addresses with reference after import
fix sql query for address reference matcher
2023-03-22 15:32:37 +01:00
c9fe5a393f
DX: [Address] fix inconsistencies between doctrine mapping and sql schema
...
DX: [Address] fix inconsistencies between doctrine mapping and sql schema
Fixed: Address vue module do now set empty value to empty string instead of null
DX: fixed AddressReferenceBaseImporterTest
2023-03-22 11:38:48 +01:00
bbd2599e7e
Fixed: [cron] store the last store of executed tasks correctly
2022-12-27 00:09:45 +01:00
c8127a1d9d
Fixed: ensure to execute Refresh Address To Geographical Unit Cronjob even during the day
2022-12-23 13:36:23 +01:00
e0c9e12008
Feature: [cron] Create a cron job to refresh materialized view address - geographical unit association
2022-12-12 14:35:46 +01:00
c7f740d5d7
DX: Add rolling date converter + unit test
2022-11-07 17:42:00 +01:00
36590e7810
fix cs: mismatch header and strict type declaration
2022-10-06 22:25:45 +02: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
a967e1ed17
fix cs
2022-10-05 15:23:28 +02:00
9c3ac72426
Feature: Create a base importer for geographical units and add index
2022-10-03 15:45:42 +02:00
8129739d27
test for postal code base importer
2022-09-17 10:59:04 +02:00
658e846120
add test for AddressReferenceBaseImporter
2022-09-17 10:44:26 +02: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
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
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
8f96a1121d
cs: Fix code style (safe rules only).
2021-11-23 14:08:50 +01:00
ed8a569fea
remove obsolete test
2021-10-04 16:30:08 +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