Skip to content
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

feat: add dedicated test cases to ensure copy and move methods to always overwrite target #1808

Merged
merged 7 commits into from
Aug 17, 2024

Conversation

tinect
Copy link
Contributor

@tinect tinect commented Aug 9, 2024

see #1764

from docs: https://flysystem.thephpleague.com/docs/usage/filesystem-api/

Moving and copying are both deterministic operations. This means they will always overwrite the target location, and parent directories are always created (if and when needed)

We might want to add more tests to ensure the config (e.g. visibility) is updated? I don't like to add these into this tests, but into seperate once like copying_a_file_with_same_destination_with_updated_visibility so, any adapter can overwrite/skip this test, while it does not support visibility.

Apart from this, this PR introduces tests for more reliable adapters.

What do you think?

@tinect tinect marked this pull request as draft August 9, 2024 21:32
@tinect tinect marked this pull request as ready for review August 9, 2024 22:03
@tinect tinect force-pushed the feat/testMoveAndCopyTasks branch from 39146ca to f650a7b Compare August 14, 2024 19:35
@frankdejonge frankdejonge merged commit 2c8083f into thephpleague:3.x Aug 17, 2024
6 checks passed
@tinect tinect deleted the feat/testMoveAndCopyTasks branch August 17, 2024 13:17
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