From fe40ddb013a96823fa401b2db00d77d9749f9f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Deruss=C3=A9?= Date: Sun, 13 Dec 2020 19:27:25 +0100 Subject: [PATCH] Fix applyVersion tests --- .../VersionStrategy/RemoteJsonManifestVersionStrategyTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Asset/Tests/VersionStrategy/RemoteJsonManifestVersionStrategyTest.php b/src/Symfony/Component/Asset/Tests/VersionStrategy/RemoteJsonManifestVersionStrategyTest.php index 64f7e6c169..cc153c5487 100644 --- a/src/Symfony/Component/Asset/Tests/VersionStrategy/RemoteJsonManifestVersionStrategyTest.php +++ b/src/Symfony/Component/Asset/Tests/VersionStrategy/RemoteJsonManifestVersionStrategyTest.php @@ -30,14 +30,14 @@ class RemoteJsonManifestVersionStrategyTest extends TestCase { $strategy = $this->createStrategy('https://cdn.example.com/manifest-valid.json'); - $this->assertSame('css/styles.555def.css', $strategy->getVersion('css/styles.css')); + $this->assertSame('css/styles.555def.css', $strategy->applyVersion('css/styles.css')); } public function testApplyVersionWhenKeyDoesNotExistInManifest() { $strategy = $this->createStrategy('https://cdn.example.com/manifest-valid.json'); - $this->assertSame('css/other.css', $strategy->getVersion('css/other.css')); + $this->assertSame('css/other.css', $strategy->applyVersion('css/other.css')); } public function testMissingManifestFileThrowsException()