added tests for wp_upload_bits#3659
Conversation
costdev
left a comment
There was a problem hiding this comment.
Thanks for the PR @pbearne!
I've left some suggestions regarding the deprecation notices and failures I saw due to assumed filepaths in the test methods.
In addition, there's a lot of work needed in this PR to bring it up to Core test standards. See my review on this PR for some examples, and I'll add:
- The file needs to be renamed for consistency with the rest of the test suite.
- Now that the ticket is up,
@ticketannotations should be added to each test method. - Test method names and descriptions could be improved.
- Consider test method names like:
test_wp_upload_bits_should_do_something()test_wp_upload_bits_should_not_do_something()- and write the test method description to reflect "Tests that wp_upload_bits does/does not do something".
- Consider test method names like:
- Test methods with multiple assertions require a
$messageparameter to explain why an assertion failed.
When everything's looking good, feel free to ping me for another review.
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
Co-authored-by: Colin Stewart <79332690+costdev@users.noreply.github.com>
|
@pbearne if you're still working on this, could you bring it up to date with |
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Unlinked AccountsThe following contributors have not linked their GitHub and WordPress.org accounts: @pbearne@git.wordpress.org. Contributors, please read how to link your accounts to ensure your work is properly credited in WordPress releases. Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
Refreshed |
Trac ticket: https://core.trac.wordpress.org/ticket/65534
This is isn't working maybe someone else can work why we get this error
Failed asserting that exception of type "PHPUnit\Framework\Error\Deprecated" is thrown.