Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tests] Fixed breaking changes introduced by twig/twig v3.11.0 #415

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

alongosz
Copy link
Member

@alongosz alongosz commented Aug 9, 2024

🎫 Issue n/a

Related PRs:

Description:

The latest Twig release (twig/twig:v3.11.0) changed deprecation message format. As we deprecated our own filters and functions, it crashed our Twig integration tests.

Moreover I see some sort of template caching has been introduced, making deprecation being thrown only once, per 1st template loading. I had to remove other snippets from a template file as they didn't produce any message. While overall more caching is better, I think Twig's integration test shouldn't behave this way. There's nothing I can do about it right now.

Update: The removed test cases are also covered fully by the test cases testing the actual filters and functions (not their deprecated counterparts). E.g: https://github.com/ibexa/core/blob/e766878c07435ee29997e9d4e704fd8235c9cce6/tests/lib/MVC/Symfony/Templating/Twig/Extension/_fixtures/filters/ibexa_data_attributes_serialize.test

@alongosz alongosz force-pushed the fix-twig-deprecation-msg-change branch from ff17519 to 0d135d3 Compare August 9, 2024 10:05
@alongosz alongosz requested a review from a team August 9, 2024 10:48
@konradoboza konradoboza requested a review from a team August 9, 2024 10:51
@alongosz alongosz force-pushed the fix-twig-deprecation-msg-change branch from 0d135d3 to 095faa4 Compare August 9, 2024 11:13
@alongosz alongosz requested a review from Steveb-p August 9, 2024 11:14
Copy link

sonarcloud bot commented Aug 9, 2024

@alongosz alongosz merged commit 1208a1e into 4.6 Aug 9, 2024
22 checks passed
@alongosz alongosz deleted the fix-twig-deprecation-msg-change branch August 9, 2024 12:28
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.

5 participants