Skip to content

Commit a9858c6

Browse files
committed
fix tests using Twig 3.12
1 parent c582b76 commit a9858c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Bridge/Twig/Tests/Extension/HttpKernelExtensionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function testGenerateFragmentUri()
7474
'index' => sprintf(<<<TWIG
7575
{{ fragment_uri(controller("%s::templateAction", {template: "foo.html.twig"})) }}
7676
TWIG
77-
, TemplateController::class), ]);
77+
, str_replace('\\', '\\\\', TemplateController::class)), ]);
7878
$twig = new Environment($loader, ['debug' => true, 'cache' => false]);
7979
$twig->addExtension(new HttpKernelExtension());
8080

@@ -84,7 +84,7 @@ public function testGenerateFragmentUri()
8484
]);
8585
$twig->addRuntimeLoader($loader);
8686

87-
$this->assertSame('/_fragment?_hash=PP8%2FeEbn1pr27I9wmag%2FM6jYGVwUZ0l2h0vhh2OJ6CI%3D&amp;_path=template%3Dfoo.html.twig%26_format%3Dhtml%26_locale%3Den%26_controller%3DSymfonyBundleFrameworkBundleControllerTemplateController%253A%253AtemplateAction', $twig->render('index'));
87+
$this->assertSame('/_fragment?_hash=XCg0hX8QzSwik8Xuu9aMXhoCeI4oJOob7lUVacyOtyY%3D&amp;_path=template%3Dfoo.html.twig%26_format%3Dhtml%26_locale%3Den%26_controller%3DSymfony%255CBundle%255CFrameworkBundle%255CController%255CTemplateController%253A%253AtemplateAction', $twig->render('index'));
8888
}
8989

9090
protected function getFragmentHandler($returnOrException): FragmentHandler

0 commit comments

Comments
 (0)