Skip to content

Commit bea731a

Browse files
committedJul 6, 2024
do not use uniqid() in tests
updates the remaining tests that were not covered by #57665
1 parent 454d22b commit bea731a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎Tests/FilesystemTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ public function testRenameOverwritesTheTargetIfItAlreadyExists()
863863
public function testRenameThrowsExceptionOnError()
864864
{
865865
$this->expectException(IOException::class);
866-
$file = $this->workspace.\DIRECTORY_SEPARATOR.uniqid('fs_test_', true);
866+
$file = $this->workspace.\DIRECTORY_SEPARATOR.'does-not-exist';
867867
$newPath = $this->workspace.\DIRECTORY_SEPARATOR.'new_file';
868868

869869
$this->filesystem->rename($file, $newPath);

0 commit comments

Comments
 (0)
Please sign in to comment.