From 52a5d5f6959d758007213fe65223675477f33a08 Mon Sep 17 00:00:00 2001 From: Christian Flothmann Date: Sun, 1 Sep 2024 09:35:08 +0200 Subject: [PATCH] fix tests on Windows --- .../AssetMapper/Tests/ImportMap/RemotePackageStorageTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }