8000 fix tests on Windows · symfony/symfony@52a5d5f · GitHub
[go: up one dir, main page]

Skip to content

Commit 52a5d5f

Browse files
committed
fix tests on Windows
1 parent cc11de0 commit 52a5d5f

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