diff --git a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php index 7c0f1541a85ed..82b0bd6b5be81 100644 --- a/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php +++ b/src/Symfony/Component/AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php @@ -62,7 +62,9 @@ public function testSaveThrowsWhenFailing() $storage->save($entry, 'any content'); } finally { if ('\\' === \DIRECTORY_SEPARATOR) { - $this->filesystem->chmod($vendorDir.'/module_specifier/module_specifier.index.js', 0777); + foreach (glob($vendorDir.'/module_specifier/*') as $file) { + $this->filesystem->chmod($file, 0777); + } } else { $this->filesystem->chmod($vendorDir.'/module_specifier/', 0777); }