Skip to content

Commit 909a0a1

Browse files
test
1 parent 828cb83 commit 909a0a1

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/Tests/CreateContractAndResponseTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)