Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
Hello,
Continuing from: #502
The root of the issue is that in the test context, we're missing the
Symfony\Bundle\WebProfilerBundle\Profiler\CodeExtensionthat provides the neededfile_linkTwig Filter.This is the result of
dd(array_keys($this->twig->getExtensions()));right before the problematic template (@Translation/WebUI/show.html.twig) is rendered:As we can see, the extension mentioned in the begining is missing.
I do not know why it behaves like this all of a sudden, I'm guessing something changed in later versions of the bundle.
As for the fix, I simply added the bundle to the ones installed in the "test app" that's used to run the Functional Tests.