diff --git a/src/Turbo/tests/Bridge/Mercure/TurboStreamListenRendererTest.php b/src/Turbo/tests/Bridge/Mercure/TurboStreamListenRendererTest.php index 549ab2f4f7..0721bceaec 100644 --- a/src/Turbo/tests/Bridge/Mercure/TurboStreamListenRendererTest.php +++ b/src/Turbo/tests/Bridge/Mercure/TurboStreamListenRendererTest.php @@ -19,12 +19,19 @@ final class TurboStreamListenRendererTest extends KernelTestCase { /** * @dataProvider provideTestCases + * @param array $context */ - public function testRenderTurboStreamListen(string $template, array $context, string $expectedResult) + public function testRenderTurboStreamListen(string $template, array $context, string $expectedResult): void { - $this->assertSame($expectedResult, self::getContainer()->get('twig')->createTemplate($template)->render($context)); + $twig = self::getContainer()->get('twig'); + self::assertInstanceOf(\Twig\Environment::class, $twig); + + $this->assertSame($expectedResult, $twig->createTemplate($template)->render($context)); } + /** + * @return iterable, 2: string}> + */ public static function provideTestCases(): iterable { $newEscape = (new \ReflectionClass(StimulusAttributes::class))->hasMethod('escape');