Fix applyVersion tests

This commit is contained in:
Jérémy Derussé 2020-12-13 19:27:25 +01:00
parent 7c7366a82a
commit fe40ddb013
No known key found for this signature in database
GPG Key ID: 2083FA5758C473D2

View File

@ -30,14 +30,14 @@ class RemoteJsonManifestVersionStrategyTest extends TestCase
{ {
$strategy = $this->createStrategy('https://cdn.example.com/manifest-valid.json'); $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() public function testApplyVersionWhenKeyDoesNotExistInManifest()
{ {
$strategy = $this->createStrategy('https://cdn.example.com/manifest-valid.json'); $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() public function testMissingManifestFileThrowsException()