minor #39486 [Asset] Fix tests for 5.1 (jderusse)

This PR was merged into the 5.1 branch.

Discussion
----------

[Asset] Fix tests for 5.1

| Q             | A
| ------------- | ---
| Branch?       | 5.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

Commits
-------

fe40ddb013 Fix applyVersion tests
This commit is contained in:
Fabien Potencier 2020-12-14 08:02:33 +01:00
commit 0a8a3d77e8

View 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()