Skip to content

Commit 238e1aa

Browse files
committed
relax assertions on generated hashes
1 parent da55b3e commit 238e1aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Extension/HttpKernelExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function testGenerateFragmentUri()
8181
]);
8282
$twig->addRuntimeLoader($loader);
8383

84-
$this->assertSame('/_fragment?_hash=XCg0hX8QzSwik8Xuu9aMXhoCeI4oJOob7lUVacyOtyY%3D&_path=template%3Dfoo.html.twig%26_format%3Dhtml%26_locale%3Den%26_controller%3DSymfony%255CBundle%255CFrameworkBundle%255CController%255CTemplateController%253A%253AtemplateAction', $twig->render('index'));
84+
$this->assertMatchesRegularExpression('#/_fragment\?_hash=.+&_path=template%3Dfoo.html.twig%26_format%3Dhtml%26_locale%3Den%26_controller%3DSymfony%255CBundle%255CFrameworkBundle%255CController%255CTemplateController%253A%253AtemplateAction$#', $twig->render('index'));
8585
}
8686

8787
protected function getFragmentHandler($returnOrException): FragmentHandler

0 commit comments

Comments
 (0)