You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated symfony/ux-turbo from v2.23.0 to 2.25.2 and my tests (WebTestCase) started failing with this error
ErrorException: An exception has been thrown during the rendering of a template
("Too few arguments to function Symfony\UX\Turbo\Bridge\Mercure\TurboStreamListenRenderer::__construct(),
3 passed in /app/var/cache/test/ContainerO3ffV3d/getTurbo_Mercure_Default_RendererService.php
on line 31 and exactly 4 expected") in "foo.html.twig" at line 31.
I see that this PR #2447 has been merged in v2.24.0, and a lot of things related to turbo_stream_listen has changed, including RegisterMercureHubsPass. It loops through mercure.hub tags, so I ended up with this solution
Hey everyone! 👋🏻
I updated
symfony/ux-turbo
fromv2.23.0
to2.25.2
and my tests (WebTestCase) started failing with this errorOn line 31 is
turbo_stream_listen
.Additionally, I have
mercure.hub.default
mocked according to these instructions https://symfony.com/doc/current/mercure.html#testingI see that this PR #2447 has been merged in
v2.24.0
, and a lot of things related toturbo_stream_listen
has changed, includingRegisterMercureHubsPass
. It loops throughmercure.hub
tags, so I ended up with this solutionReporting this because I'm not sure if this is a bug or if the documentation has to be updated.
The text was updated successfully, but these errors were encountered: