Skip to content

Commit b363fd9

Browse files
committed
fixing tests
1 parent 0f5a57c commit b363fd9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Notify/tests/Twig/NotifyRuntimeTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Symfony\UX\Notify\Tests\Kernel\TwigAppKernel;
16-
use Twig\Environment;
16+
use Symfony\UX\Notify\Twig\NotifyRuntime;
1717

1818
/**
1919
* @author Mathias Arlaud <mathias.arlaud@gmail.com>
@@ -31,7 +31,9 @@ public function testStreamNotifications(array $params, string $expected)
3131
$kernel->boot();
3232
$container = $kernel->getContainer()->get('test.service_container');
3333

34-
$rendered = $container->get('test.notify.twig_runtime')->renderStreamNotifications($container->get(Environment::class), ...$params);
34+
$runtime = $container->get('test.notify.twig_runtime');
35+
\assert($runtime instanceof NotifyRuntime);
36+
$rendered = $runtime->renderStreamNotifications(...$params);
3537
$this->assertSame($expected, $rendered);
3638
}
3739

0 commit comments

Comments
 (0)