Skip to content

[12.x] Add comprehensive filesystem operation tests to FilesystemTest #55399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 14, 2025

Conversation

roshandelpoor
Copy link
Contributor

This PR adds two new test cases to FilesystemTest.php to improve the test coverage of filesystem operations:

  1. testFileCreationAndContentVerification

    • Tests file creation with content
    • Verifies file existence
    • Validates file content
    • Checks file size
  2. testDirectoryOperationsWithSubdirectories

    • Tests directory creation
    • Verifies subdirectory operations
    • Tests file creation in sub-directories
    • Validates directory listing functionality

Add two new test cases to FilesystemTest.php:
- testFileCreationAndContentVerification: Tests file creation, existence check, content verification, and size
- testDirectoryOperationsWithSubdirectories: Tests directory creation, subdirectory operations, and file listing

These tests complement existing filesystem tests by verifying end-to-end operations and directory structure management.
@taylorotwell taylorotwell merged commit d30738d into laravel:12.x Apr 14, 2025
60 checks passed
toshitsuna-otsuka pushed a commit to toshitsuna-otsuka/laravel-framework that referenced this pull request Apr 15, 2025
…laravel#55399)

* Add test for Filesystem lastModified method

* add comprehensive filesystem operation tests

Add two new test cases to FilesystemTest.php:
- testFileCreationAndContentVerification: Tests file creation, existence check, content verification, and size
- testDirectoryOperationsWithSubdirectories: Tests directory creation, subdirectory operations, and file listing

These tests complement existing filesystem tests by verifying end-to-end operations and directory structure management.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants