Skip to content

fix: correct EligibilityQueryDtoTest invalid installments count test#246

Merged
Francois-Gomis merged 2 commits into
feature/3.0from
fix/ecom-4025-eligibility-query-dto-test
Mar 31, 2026
Merged

fix: correct EligibilityQueryDtoTest invalid installments count test#246
Francois-Gomis merged 2 commits into
feature/3.0from
fix/ecom-4025-eligibility-query-dto-test

Conversation

@Francois-Gomis

@Francois-Gomis Francois-Gomis commented Mar 31, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Update CI PHP matrix from 5.6-8.3 to 7.4-8.4 to match the minimum supported version on this branch

  • Remove legacy : void workaround for PHP 5.6/7.0

  • Remove dead ReportPortal configuration step

  • Add PHP 8.4 to PHPUnit configuration case

  • Use a truly invalid value (-1) instead of 13 in testSetInvalidInstallmentsCountThrowsException

  • Align expectExceptionMessage with the actual DTO message ("Installments count must be positive.")

Why

The test was always failing because 13 is a valid value (validation only checks <= 0) and the expected exception message didn't match the actual one.

Test plan

  • task 7.4:tests — 252 tests, 519 assertions, all green

Fixes ECOM-4025 | Discovered while working on ECOM-4023

🤖 Generated with Claude Code

Use a truly invalid value (-1) instead of 13 and align expected
exception message with the actual DTO validation.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Francois-Gomis Francois-Gomis requested a review from a team as a code owner March 31, 2026 10:29
@github-actions github-actions Bot added the type: bugfix Bug fix label Mar 31, 2026
@Francois-Gomis Francois-Gomis requested a review from a team as a code owner March 31, 2026 10:41
@Francois-Gomis Francois-Gomis merged commit 51a5c11 into feature/3.0 Mar 31, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants