8000 minor #58152 [AssetMapper] fix tests on Windows (xabbuh) · symfony/symfony@1958d21 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1958d21

Browse files
committed
minor #58152 [AssetMapper] fix tests on Windows (xabbuh)
This PR was merged into the 7.2 branch. Discussion ---------- [AssetMapper] fix tests on Windows | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 52a5d5f fix tests on Windows
2 parents d7f5159 + 52a5d5f commit 1958d21

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ public function testSaveThrowsWhenFailing()
6262
$storage->save($entry, 'any content');
6363
} finally {
6464
if ('\\' === \DIRECTORY_SEPARATOR) {
65-
$this->filesystem->chmod($vendorDir.'/module_specifier/module_specifier.index.js', 0777);
65+
foreach (glob($vendorDir.'/module_specifier/*') as $file) {
66+
$this->filesystem->chmod($file, 0777);
67+
}
6668
} else {
6769
$this->filesystem->chmod($vendorDir.'/module_specifier/', 0777);
6870
}

0 commit comments

Comments
 (0)
0