File tree Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Expand file tree Collapse file tree 1 file changed +0
-37
lines changed Original file line number Diff line number Diff line change @@ -50,43 +50,6 @@ public function testRuntimeIsRegistered(): void
50
50
$ this ->assertInstanceOf (MapRuntime::class, $ twig ->getRuntime (MapRuntime::class));
51
51
}
52
52
53
- /**
54
- * @group legacy
55
- */
56
- public function testRenderFunctionIsDeprecated (): void
57
- {
58
- $ map = (new Map ())
59
- ->center (new Point (latitude: 5 , longitude: 10 ))
60
- ->zoom (4 );
61
-
62
- $ renderer = self ::createMock (RendererInterface::class);
63
- $ renderer
64
- ->expects (self ::once ())
65
- ->method ('renderMap ' )
66
- ->with ($ map , [])
67
- ->willReturn ('<map/> ' )
68
- ;
69
- self ::getContainer ()->set ('test.ux_map.renderers ' , $ renderer );
70
-
71
- /** @var Environment $twig */
72
- $ twig = self ::getContainer ()->get ('twig ' );
73
- $ twig ->setLoader (new ChainLoader ([
74
- new ArrayLoader ([
75
- 'test ' => '{{ render_map(map) }} ' ,
76
- ]),
77
- $ twig ->getLoader (),
78
- ]));
79
-
80
- if (class_exists (DeprecatedCallableInfo::class)) {
81
- $ this ->expectDeprecation ('Since symfony/ux-map 2.20: Twig Function "render_map" is deprecated; use "ux_map" instead in test at line 1. ' );
82
- } else {
83
- $ this ->expectDeprecation ('Twig Function "render_map" is deprecated since version 2.20. Use "ux_map" instead in test at line 1. ' );
84
- }
85
-
86
- $ html = $ twig ->render ('test ' , ['map ' => $ map ]);
87
- $ this ->assertSame ('<map/> ' , $ html );
88
- }
89
-
90
53
public function testMapFunctionWithArray (): void
91
54
{
92
55
$ map = (new Map ())
You can’t perform that action at this time.
0 commit comments