-
-
Notifications
You must be signed in to change notification settings - Fork 318
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
Cleanup download tests #1457
Cleanup download tests #1457
Conversation
88fa950
to
c0e79ac
Compare
I am wondering if we should add a helper function which given a path |
No need to add helper function for that. But I am more curious where you want to use it? |
e.g. here: $zipArchive->assertContainsFilesExactly([
'train.jpg' => ['size' => filesize(base_path(self::SAMPLE_FILE_TRAIN_IMAGE))],
'mongolia-1.jpeg' => ['size' => filesize(base_path(self::SAMPLE_FILE_MONGOLIA_IMAGE))],
'mongolia-2.jpeg' => ['size' => filesize(base_path(self::SAMPLE_FILE_MONGOLIA_IMAGE))], Well $zipArchive->assertContainsFilesExactly([
self::MULTI_BYTE_ALBUM_TITLE . '/fin de journée.jpg' => ['size' => filesize(base_path(TestCase::SAMPLE_FILE_SUNSET_IMAGE))],
self::MULTI_BYTE_ALBUM_TITLE . '/mongolia.jpeg' => ['size' => filesize(base_path(TestCase::SAMPLE_FILE_MONGOLIA_IMAGE))],
]); |
At these places such a helper function does not help. The name of downloaded file is not based on the original name of the initially uploaded file, but on the title of the photo which has been assigned by Lychee. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Co-authored-by: Kamil Iskra <[email protected]>
This is a follow-up to #1453. I already wanted to do that yesterday, but wanted to keep the re-factoring out of #1453.
PhotosOperationsTest
to the new and specialized test classPhotosDownloadTest
in order to keep them together.AssertableZIPArchive