Fix applyVersion tests
authorJérémy Derussé <jeremy@derusse.com>
Sun, 13 Dec 2020 18:27:25 +0000 (19:27 +0100)
committerJérémy Derussé <jeremy@derusse.com>
Sun, 13 Dec 2020 18:27:25 +0000 (19:27 +0100)
src/Symfony/Component/Asset/Tests/VersionStrategy/RemoteJsonManifestVersionStrategyTest.php

index 64f7e6c..cc153c5 100644 (file)
@@ -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()