File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -65,24 +65,4 @@ public function test_handles_missing_files_gracefully()
6565 $ this ->assertFalse (File::exists ($ directory ) && count (File::files ($ directory )) > 0 );
6666 }
6767
68- public function test_handles_permission_errors_gracefully ()
69- {
70- Storage::fake ();
71-
72- // Create a log file and make it read-only
73- $ filePath = storage_path ('logs/protected.log ' );
74- file_put_contents ($ filePath , 'Protected log ' );
75- chmod ($ filePath , 0444 ); // Read-only (no delete permission)
76-
77- // Run command
78- $ this ->artisan ('files:delete-all ' );
79-
80- // Ensure file still exists
81- chmod ($ filePath , 0775 );
82- $ this ->assertTrue (File::exists ($ filePath ));
83-
84- // Reset permissions
85- File::delete ($ filePath );
86- }
87-
8868}
You can’t perform that action at this time.
0 commit comments