Skip to content

Fix route parameters no longer being compared as strings - #249

Merged
TavoNiievez merged 1 commit into
Codeception:mainfrom
cs278:issue-245
Oct 26, 2026
Merged

TavoNiievez merged 1 commit into
Codeception:mainfrom
cs278:issue-245

Conversation

@cs278

@cs278 cs278 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Fixes #245

I figured performing an explicit cast would make the intention clearer than switching to an assertEquals constraint.

@cs278

cs278 commented Sep 30, 2026

Copy link
Copy Markdown
Contributor Author

Not sure why the tests are failing, I cannot even see the failing test in the repository. 😕

@cs278

cs278 commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

@TavoNiievez any chance of input here?

@burned42

burned42 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Not sure why the tests are failing, I cannot even see the failing test in the repository. 😕

I did a bit of digging and found this patch file which seems to include the failing test, which gets applied in the github actions workflow only for the symfony 7.4 test suite, which explains why exactly/only that one is failing.

@cs278

cs278 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

@TavoNiievez

TavoNiievez commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

@cs278 The solution you propose is correct.
The patch for version 7.4 is specific to a test on api-platform.
Currently, this repository is being tested through the symfony-module-tests project and through its own test suite in the tests/ folder.
My intention in creating the tests in this repository was to eventually stop relying on the tests in the symfony-module-tests project, but that work is still a work in progress.
The fact that this test is failing is an issue I need to fix, but it doesn’t prevent me from merging your contribution from this PR.
However, I must fix it before releasing a tag.
Thank you for your patience.

@TavoNiievez
TavoNiievez merged commit 511517d into Codeception:main Oct 26, 2026
5 of 7 checks passed
@cs278
cs278 deleted the issue-245 branch October 26, 2026 14:49
@cs278

cs278 commented Oct 26, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the merge, I've actually worked around the issue in my project but I'll be able to remove that hack when you do publish a release. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backwards compatibility break in RouterAssertionsTrait::seeCurrentRouteIs()

3 participants