test: fix content-disposition header assertion tests#1013
Conversation
688a6ff to
8b16d18
Compare
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
8b16d18 to
da82c16
Compare
PHP Code CoverageCoverage after merging fix/php-unit-tests into release/2.11 will be
Coverage Report
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
Description
The format of the Content-Disposition header changed in Nextcloud (>= 32).
Older versions(< 32) and newer versions(>= 32) generate slightly different header strings.
for example:
So, in phpunit tests, this PR replaced exact string checks with regex to support both quoted/unquoted filenames.
Related Issue or Workpackage
Screenshots (if appropriate):
Types of changes
Checklist:
CHANGELOG.mdfile