diff --git a/src/Map/tests/Twig/MapExtensionTest.php b/src/Map/tests/Twig/MapExtensionTest.php
index c9850f1b795..9e7c2b45b6e 100644
--- a/src/Map/tests/Twig/MapExtensionTest.php
+++ b/src/Map/tests/Twig/MapExtensionTest.php
@@ -19,10 +19,7 @@
use Symfony\UX\Map\Tests\Kernel\TwigAppKernel;
use Symfony\UX\Map\Twig\MapExtension;
use Symfony\UX\Map\Twig\MapRuntime;
-use Twig\DeprecatedCallableInfo;
use Twig\Environment;
-use Twig\Loader\ArrayLoader;
-use Twig\Loader\ChainLoader;
class MapExtensionTest extends KernelTestCase
{
@@ -50,43 +47,6 @@ public function testRuntimeIsRegistered(): void
$this->assertInstanceOf(MapRuntime::class, $twig->getRuntime(MapRuntime::class));
}
- /**
- * @group legacy
- */
- public function testRenderFunctionIsDeprecated(): void
- {
- $map = (new Map())
- ->center(new Point(latitude: 5, longitude: 10))
- ->zoom(4);
-
- $renderer = self::createMock(RendererInterface::class);
- $renderer
- ->expects(self::once())
- ->method('renderMap')
- ->with($map, [])
- ->willReturn('')
- ;
- self::getContainer()->set('test.ux_map.renderers', $renderer);
-
- /** @var Environment $twig */
- $twig = self::getContainer()->get('twig');
- $twig->setLoader(new ChainLoader([
- new ArrayLoader([
- 'test' => '{{ render_map(map) }}',
- ]),
- $twig->getLoader(),
- ]));
-
- if (class_exists(DeprecatedCallableInfo::class)) {
- $this->expectDeprecation('Since symfony/ux-map 2.20: Twig Function "render_map" is deprecated; use "ux_map" instead in test at line 1.');
- } else {
- $this->expectDeprecation('Twig Function "render_map" is deprecated since version 2.20. Use "ux_map" instead in test at line 1.');
- }
-
- $html = $twig->render('test', ['map' => $map]);
- $this->assertSame('', $html);
- }
-
public function testMapFunctionWithArray(): void
{
$map = (new Map())