Skip to content

Commit

Permalink
minor #52213 [AssetMapper] Normalizing path in test to fix / \ compar…
Browse files Browse the repository at this point in the history
…ison in Windows (weaverryan)

This PR was merged into the 6.4 branch.

Discussion
----------

[AssetMapper] Normalizing path in test to fix / \ comparison in Windows

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | Fixes the failing AppVeyor test
| License       | MIT

https://ci.appveyor.com/project/fabpot/symfony/builds/48330693#L1059

Commits
-------

cf5b68b [AssetMapper] Normalizing path in test to fix / \ comparison in Windows
  • Loading branch information
fabpot committed Oct 21, 2023
2 parents 5cb2f83 + cf5b68b commit 790f6f5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function testLoadConfig()
public function testSaveConfig()
{
$reader = new CompiledAssetMapperConfigReader($this->writableRoot);
$this->assertEquals($this->writableRoot.'/foo.json', $reader->saveConfig('foo.json', ['foo' => 'bar']));
$this->assertEquals($this->writableRoot.\DIRECTORY_SEPARATOR.'foo.json', realpath($reader->saveConfig('foo.json', ['foo' => 'bar'])));
$this->assertEquals(['foo' => 'bar'], json_decode(file_get_contents($this->writableRoot.'/foo.json'), true));
}

Expand Down

0 comments on commit 790f6f5

Please sign in to comment.