Commit 5f8ea6a
committed
minor #62137 [FrameworkBundle] Fix test on read-only directory on Windows (GromNaN)
This PR was merged into the 7.4 branch.
Discussion
----------
[FrameworkBundle] Fix test on read-only directory on Windows
| Q | A
| ------------- | ---
| Branch? | 7.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues | -
| License | MIT
[`mkdir`](https://www.php.net/manual/en/function.mkdir.php)'s permissions is ignored on Windows.
Use a Windows command to make the directory read-only.
Fix the [job](https://github.com/symfony/symfony/actions/runs/18751945876/job/53493659812#step:7:1603):
```
1) Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler\PhpConfigReferenceDumpPassTest::testProcessIgnoresFileWriteErrors
Failed asserting that file "C:\Users\RUNNER~1\AppData\Local\Temp/sf_test_config_reference/readonly/reference.php" does not exist.
D:\a\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler\PhpConfigReferenceDumpPassTest.php:76
```
Commits
-------
76ad3872647 [FrameworkBundle] Fix test on read-only directory on WindowsFile tree
1 file changed
+4
-0
lines changed- Tests/DependencyInjection/Compiler
1 file changed
+4
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
0 commit comments